mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 20:12:14 +09:00
Mark Context::convertEncodingStr() and related methods as deprecated
https://xetown.com/questions/1759076
This commit is contained in:
parent
be97b3f5e5
commit
9815102b38
2 changed files with 9 additions and 1 deletions
|
|
@ -915,6 +915,8 @@ class Context
|
||||||
/**
|
/**
|
||||||
* Convert strings of variables in $source_object into UTF-8
|
* Convert strings of variables in $source_object into UTF-8
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
|
*
|
||||||
* @param object $source_obj Conatins strings to convert
|
* @param object $source_obj Conatins strings to convert
|
||||||
* @return object converted object
|
* @return object converted object
|
||||||
*/
|
*/
|
||||||
|
|
@ -950,6 +952,8 @@ class Context
|
||||||
/**
|
/**
|
||||||
* Check flag
|
* Check flag
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
|
*
|
||||||
* @param mixed $val
|
* @param mixed $val
|
||||||
* @param string $key
|
* @param string $key
|
||||||
* @param mixed $charset charset
|
* @param mixed $charset charset
|
||||||
|
|
@ -977,6 +981,8 @@ class Context
|
||||||
/**
|
/**
|
||||||
* Convert array type variables into UTF-8
|
* Convert array type variables into UTF-8
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
|
*
|
||||||
* @param mixed $val
|
* @param mixed $val
|
||||||
* @param string $key
|
* @param string $key
|
||||||
* @param string $charset character set
|
* @param string $charset character set
|
||||||
|
|
@ -998,6 +1004,8 @@ class Context
|
||||||
/**
|
/**
|
||||||
* Convert strings into UTF-8
|
* Convert strings into UTF-8
|
||||||
*
|
*
|
||||||
|
* @deprecated
|
||||||
|
*
|
||||||
* @param string $str String to convert
|
* @param string $str String to convert
|
||||||
* @return string converted string
|
* @return string converted string
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ class ModuleHandler extends Handler
|
||||||
$this->is_mobile = Mobile::isFromMobilePhone();
|
$this->is_mobile = Mobile::isFromMobilePhone();
|
||||||
if($entry = Context::get('entry'))
|
if($entry = Context::get('entry'))
|
||||||
{
|
{
|
||||||
$this->entry = Context::convertEncodingStr($entry);
|
$this->entry = escape($entry, false);
|
||||||
}
|
}
|
||||||
if(!$this->module && $this->mid === 'admin')
|
if(!$this->module && $this->mid === 'admin')
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue