Verified Commit d93751ba authored by dockx thibault's avatar dockx thibault
Browse files

:ambulance: fixing phpcs

Showing with 0 additions and 1 deletion
+0 -1
...@@ -230,7 +230,6 @@ class IconTheme ...@@ -230,7 +230,6 @@ class IconTheme
static public function findThemeIcon ($theme, $context, $icon, $size) static public function findThemeIcon ($theme, $context, $icon, $size)
{ {
// We have to sanitize the $icon received from $_GET['icon']. Fixing vulnerability : CWE-35 // We have to sanitize the $icon received from $_GET['icon']. Fixing vulnerability : CWE-35
if (!preg_match('/^[a-zA-Z0-9_\-]+$/', $icon)) { if (!preg_match('/^[a-zA-Z0-9_\-]+$/', $icon)) {
trigger_error('Error: Wrong icon name received'); trigger_error('Error: Wrong icon name received');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment