Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
bnu committed Aug 1, 2018
2 parents 36c5e5c + 124d119 commit a47a81c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/func.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ function getFullSiteUrl()
function getCurrentPageUrl()
{
$protocol = $_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://';
$url = $protocol . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$url = $protocol . $_SERVER['HTTP_HOST'] . preg_replace('/[<>"]/', '', $_SERVER['REQUEST_URI']);
return htmlspecialchars($url, ENT_COMPAT, 'UTF-8', FALSE);
}

Expand Down Expand Up @@ -1365,7 +1365,7 @@ function getScriptPath()
*/
function getRequestUriByServerEnviroment()
{
return str_replace('<', '&lt;', $_SERVER['REQUEST_URI']);
return str_replace('<', '&lt;', preg_replace('/[<>"]/', '', $_SERVER['REQUEST_URI']));
}

/**
Expand Down

0 comments on commit a47a81c

Please sign in to comment.