mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
fixes #1168 prevent XSS on pwg.images.setInfo
This commit is contained in:
@@ -1674,7 +1674,12 @@ SELECT *
|
||||
);
|
||||
}
|
||||
|
||||
$update['file'] = $params['file'];
|
||||
// prevent XSS, remove HTML tags
|
||||
$update['file'] = strip_tags($params['file']);
|
||||
if (empty($update['file']))
|
||||
{
|
||||
unset($update['file']);
|
||||
}
|
||||
}
|
||||
|
||||
if (count(array_keys($update)) > 0)
|
||||
|
||||
Reference in New Issue
Block a user