mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Clean up namespaces
This commit is contained in:
parent
4407af2b0f
commit
cb229c2d66
26 changed files with 205 additions and 200 deletions
|
|
@ -31,12 +31,12 @@ class Security
|
|||
// Clean up HTML content to prevent XSS attacks.
|
||||
case 'html':
|
||||
if (!utf8_check($input)) return false;
|
||||
return Security\HTMLFilter::clean($input);
|
||||
return Filters\HTMLFilter::clean($input);
|
||||
|
||||
// Clean up the input to be used as a safe filename.
|
||||
case 'filename':
|
||||
if (!utf8_check($input)) return false;
|
||||
return Security\FilenameFilter::clean($input);
|
||||
return Filters\FilenameFilter::clean($input);
|
||||
|
||||
// Unknown filters return false.
|
||||
default: return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue