Skip to content

Commit

Permalink
feature 3038 : always apply serialize&addslashes if object/array is p…
Browse files Browse the repository at this point in the history
…assed and not parser is defined

git-svn-id: http://piwigo.org/svn/trunk@28621 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
mistic100 committed Jun 3, 2014
1 parent ceaa7de commit a70a274
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/functions.inc.php
Expand Up @@ -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;
Expand Down

0 comments on commit a70a274

Please sign in to comment.