mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 10:41:40 +09:00
Clean up deprecated functions in common/legacy.php
This commit is contained in:
parent
93629d1311
commit
616d894021
1 changed files with 14 additions and 8 deletions
|
|
@ -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('<', '<', $_SERVER['REQUEST_URI']);
|
||||
return escape($_SERVER['REQUEST_URI']);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue