mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-02 18:44:21 +00:00
Some fix in admin panel
Some fix in admin Panel
This commit is contained in:
+5
-2
@@ -64,9 +64,12 @@ function admin_input_id(array $source, string $key): ?int
|
||||
*/
|
||||
function e(string $value): string
|
||||
{
|
||||
return htmlspecialchars($value, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
|
||||
// decode first prevents ' / ' double encoding
|
||||
return htmlspecialchars(html_entity_decode($value, ENT_QUOTES, 'UTF-8'),
|
||||
ENT_QUOTES | ENT_SUBSTITUTE,
|
||||
'UTF-8'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Whitelist-validate the ?p= parameter.
|
||||
* Returns the validated page string, or '' if not in the whitelist.
|
||||
|
||||
Reference in New Issue
Block a user