Skip to content

Commit 5817a7a

Browse files
Zhibin1995jianyan74
authored andcommitted
fix:分页url存在xss漏洞攻击
分页url存在xss漏洞攻击
1 parent 8b761b6 commit 5817a7a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

common/helpers/DebrisHelper.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ public static function getPageSkipUrl()
166166
$fullUrl .= implode('&', $getQueryParamArr);
167167
$pageConnector = '&';
168168
}
169-
169+
$fullUrl = Html::encode($fullUrl);
170+
$pageConnector = Html::encode($pageConnector);
170171
return [$fullUrl, $pageConnector];
171172
}
172173

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

260261
return round($calculatedDistance);
261262
}
262-
}
263+
}

0 commit comments

Comments
 (0)