Mark Context::convertEncodingStr() and related methods as deprecated

https://xetown.com/questions/1759076
This commit is contained in:
Kijin Sung 2023-04-30 22:58:45 +09:00
parent be97b3f5e5
commit 9815102b38
2 changed files with 9 additions and 1 deletions

View file

@ -915,6 +915,8 @@ class Context
/**
* Convert strings of variables in $source_object into UTF-8
*
* @deprecated
*
* @param object $source_obj Conatins strings to convert
* @return object converted object
*/
@ -950,6 +952,8 @@ class Context
/**
* Check flag
*
* @deprecated
*
* @param mixed $val
* @param string $key
* @param mixed $charset charset
@ -977,6 +981,8 @@ class Context
/**
* Convert array type variables into UTF-8
*
* @deprecated
*
* @param mixed $val
* @param string $key
* @param string $charset character set
@ -998,6 +1004,8 @@ class Context
/**
* Convert strings into UTF-8
*
* @deprecated
*
* @param string $str String to convert
* @return string converted string
*/

View file

@ -90,7 +90,7 @@ class ModuleHandler extends Handler
$this->is_mobile = Mobile::isFromMobilePhone();
if($entry = Context::get('entry'))
{
$this->entry = Context::convertEncodingStr($entry);
$this->entry = escape($entry, false);
}
if(!$this->module && $this->mid === 'admin')
{