Skip to content

Commit 091fbf6

Browse files
committed
Cast the page to an integer to prevent xss
1 parent cafd519 commit 091fbf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SeoPro/TagData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function canonicalUrl() {
7373

7474
// Include pagination if present
7575
if (app('request')->has('page')) {
76-
$url .= '?page=' . app('request')->get('page');
76+
$url .= '?page=' . ((int) app('request')->get('page'));
7777
}
7878

7979
return $url;

0 commit comments

Comments
 (0)