Clean up deprecated functions in common/legacy.php

This commit is contained in:
Kijin Sung 2016-03-12 22:48:05 +09:00
parent 93629d1311
commit 616d894021

View file

@ -814,15 +814,10 @@ function url_decode($str)
return htmlspecialchars(utf8RawUrlDecode($str), null, 'UTF-8');
}
function purifierHtml(&$content)
{
$content = Rhymix\Framework\Security\HTMLFilter::clean($content);
}
/**
* Pre-block the codes which may be hacking attempts
* Sanitize HTML content.
*
* @param string $content Taget content
* @param string $content Target content
* @return string
*/
function removeHackTag($content)
@ -830,6 +825,17 @@ function removeHackTag($content)
return Rhymix\Framework\Security\HTMLFilter::clean($content);
}
/**
* HTMLPurifier wrapper (Deprecated)
*
* @param string &$content Target content
* @return string
*/
function purifierHtml(&$content)
{
$content = Rhymix\Framework\Security\HTMLFilter::clean($content);
}
/**
* Check xmp tag (Deprecated)
*
@ -918,7 +924,7 @@ function getScriptPath()
*/
function getRequestUriByServerEnviroment()
{
return str_replace('<', '&lt;', $_SERVER['REQUEST_URI']);
return escape($_SERVER['REQUEST_URI']);
}
/**