mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 09:03:38 +02:00
(cp 4d031c9) fixes #725, protect pwg.images.setInfo from HTML
This commit is contained in:
@@ -1575,6 +1575,8 @@ SELECT path
|
||||
*/
|
||||
function ws_images_setInfo($params, $service)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
||||
|
||||
$query='
|
||||
@@ -1606,6 +1608,11 @@ SELECT *
|
||||
{
|
||||
if (isset($params[$key]))
|
||||
{
|
||||
if (!$conf['allow_html_descriptions'])
|
||||
{
|
||||
$params[$key] = strip_tags($params[$key], '<b><strong><em><i>');
|
||||
}
|
||||
|
||||
if ('fill_if_empty' == $params['single_value_mode'])
|
||||
{
|
||||
if (empty($image_row[$key]))
|
||||
|
||||
Reference in New Issue
Block a user