mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
feature 3038 : always apply serialize&addslashes if object/array is passed and not parser is defined
git-svn-id: http://piwigo.org/svn/trunk@28621 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -1172,6 +1172,10 @@ function conf_update_param($param, $value, $updateGlobal=false, $parser=null)
|
||||
{
|
||||
$dbValue = call_user_func($parser, $value);
|
||||
}
|
||||
else if (is_array($value) || is_object($value))
|
||||
{
|
||||
$dbValue = addslashes(serialize($value));
|
||||
}
|
||||
else
|
||||
{
|
||||
$dbValue = $value;
|
||||
|
||||
Reference in New Issue
Block a user