mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Fixed disapearing backslashes if magic_quotes_gpc=Off. Now stripslashes is only run if it's On.
This commit is contained in:
parent
10864e96f8
commit
60a34f34fc
@ -1081,8 +1081,10 @@
|
||||
$attr = array();
|
||||
}
|
||||
$value = $this->get_array($content_in,$form_name,True);
|
||||
|
||||
if ($value && get_magic_quotes_gpc()) $value = stripslashes($value);
|
||||
|
||||
if (isset($attr['blur']) && $attr['blur'] == stripslashes($value))
|
||||
if (isset($attr['blur']) && $attr['blur'] == $value)
|
||||
{
|
||||
$value = ''; // blur-values is equal to emtpy
|
||||
}
|
||||
@ -1105,20 +1107,12 @@
|
||||
}
|
||||
break;
|
||||
case 'htmlarea':
|
||||
if (isset($value))
|
||||
{
|
||||
$value = stripslashes($value);
|
||||
}
|
||||
$this->set_array($content,$form_name,$value);
|
||||
break;
|
||||
case 'int':
|
||||
case 'float':
|
||||
case 'text':
|
||||
case 'textarea':
|
||||
if (isset($value))
|
||||
{
|
||||
$value = stripslashes($value);
|
||||
}
|
||||
if ($value === '' && $attr['needed'])
|
||||
{
|
||||
$GLOBALS['phpgw_info']['etemplate']['validation_errors'][$form_name] = lang('Field must not be empty !!!',$value);
|
||||
|
Loading…
Reference in New Issue
Block a user