mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Use DEFAULT_CHARSET
constant instead of hardcoded string (#1734)
* Use `DEFAULT_CHARSET` constant instead of hardcoded string * Update CHANGELOG.md * Update defines.php * Update info.php * Updated * Update page_header.tpl * Update index.tpl * Update index.tpl
This commit is contained in:
parent
616a19351f
commit
e5aaaf4abd
20 changed files with 35 additions and 33 deletions
|
@ -239,7 +239,7 @@ function clean_filename($fname)
|
|||
* @param ?string $charset
|
||||
* @return string
|
||||
*/
|
||||
function htmlCHR($txt, bool $double_encode = false, int $quote_style = ENT_QUOTES, ?string $charset = 'UTF-8'): string
|
||||
function htmlCHR($txt, bool $double_encode = false, int $quote_style = ENT_QUOTES, ?string $charset = DEFAULT_CHARSET): string
|
||||
{
|
||||
return (string)htmlspecialchars($txt ?? '', $quote_style, $charset, $double_encode);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue