Use new Security and URL classes in other places

This commit is contained in:
Kijin Sung 2016-03-12 17:26:41 +09:00
parent 28da8948d7
commit b962409652
3 changed files with 18 additions and 66 deletions

View file

@ -407,9 +407,10 @@ function getFullSiteUrl()
*
* @return string
*/
function getCurrentPageUrl()
function getCurrentPageUrl($escape = true)
{
return escape((RX_SSL ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
$url = Rhymix\Framework\URL::getCurrentURL();
return $escape ? escape($url) : $url;
}
/**