Skip to content

Commit

Permalink
fix:分页url存在xss漏洞攻击
Browse files Browse the repository at this point in the history
分页url存在xss漏洞攻击
  • Loading branch information
Zhibin1995 authored and jianyan74 committed Nov 13, 2019
1 parent 8b761b6 commit 5817a7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions common/helpers/DebrisHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ public static function getPageSkipUrl()
$fullUrl .= implode('&', $getQueryParamArr);
$pageConnector = '&';
}

$fullUrl = Html::encode($fullUrl);
$pageConnector = Html::encode($pageConnector);
return [$fullUrl, $pageConnector];
}

Expand Down Expand Up @@ -259,4 +260,4 @@ public static function getDistance($lat1, $lng1, $lat2, $lng2)

return round($calculatedDistance);
}
}
}

0 comments on commit 5817a7a

Please sign in to comment.