Skip to content

Commit a47a81c

Browse files
author
bnu
committed
Merge branch 'develop'
2 parents 36c5e5c + 124d119 commit a47a81c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config/func.inc.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ function getFullSiteUrl()
479479
function getCurrentPageUrl()
480480
{
481481
$protocol = $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://';
482-
$url = $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
482+
$url = $protocol . $_SERVER['HTTP_HOST'] . preg_replace('/[<>"]/', '', $_SERVER['REQUEST_URI']);
483483
return htmlspecialchars($url, ENT_COMPAT, 'UTF-8', FALSE);
484484
}
485485

@@ -1365,7 +1365,7 @@ function getScriptPath()
13651365
*/
13661366
function getRequestUriByServerEnviroment()
13671367
{
1368-
return str_replace('<', '&lt;', $_SERVER['REQUEST_URI']);
1368+
return str_replace('<', '&lt;', preg_replace('/[<>"]/', '', $_SERVER['REQUEST_URI']));
13691369
}
13701370

13711371
/**

0 commit comments

Comments
 (0)