mirror of
https://github.com/e107inc/e107.git
synced 2025-07-12 18:46:20 +02:00
fixes #3249 uc_select() didn't recognize comma separated values
added a check for such values
This commit is contained in:
@ -487,7 +487,7 @@ class e_parse extends e_parser
|
|||||||
* the save_prefs() function has been called by a non admin user / user without html posting permissions.
|
* the save_prefs() function has been called by a non admin user / user without html posting permissions.
|
||||||
* @param boolean|string $mod [optional] model = admin-ui usage. The 'no_html' and 'no_php' modifiers blanket prevent HTML and PHP posting regardless of posting permissions. (used in logging)
|
* @param boolean|string $mod [optional] model = admin-ui usage. The 'no_html' and 'no_php' modifiers blanket prevent HTML and PHP posting regardless of posting permissions. (used in logging)
|
||||||
* The 'pReFs' value is for internal use only, when saving prefs, to prevent sanitisation of HTML.
|
* The 'pReFs' value is for internal use only, when saving prefs, to prevent sanitisation of HTML.
|
||||||
* @param boolean $original_author [optional]
|
* @param mixed $parm [optional]
|
||||||
* @return string
|
* @return string
|
||||||
* @todo complete the documentation of this essential method
|
* @todo complete the documentation of this essential method
|
||||||
*/
|
*/
|
||||||
@ -501,7 +501,7 @@ class e_parse extends e_parser
|
|||||||
foreach ($data as $key => $var)
|
foreach ($data as $key => $var)
|
||||||
{
|
{
|
||||||
//Fix - sanitize keys as well
|
//Fix - sanitize keys as well
|
||||||
$ret[$this->toDB($key, $nostrip, $no_encode, $mod, $original_author)] = $this->toDB($var, $nostrip, $no_encode, $mod, $original_author);
|
$ret[$this->toDB($key, $nostrip, $no_encode, $mod, $parm)] = $this->toDB($var, $nostrip, $no_encode, $mod, $parm);
|
||||||
}
|
}
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user