[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpgroupware-developers] FelaMiMail Preferences
From: |
Lars Kneschke(priv.) |
Subject: |
Re: [Phpgroupware-developers] FelaMiMail Preferences |
Date: |
Thu, 20 Mar 2003 16:49:54 +0000 |
Bob Crandell <address@hidden> schrieb:
>I confirmed the quotes are the problem. As soon as I took them out,
>Preferences worked.
>
>I'm attaching my php.ini.
This is the difference. You have them on. I not.
magic_quotes_gpc = On
This is not a FeLaMiMail problem only. If you enter somewhere a '"' you will
always lose your prefs.
But i did fix it! Turn them off! No! :)
Can someone test this, before i put it into cvs?
This is the new function for preferences/preferences.php. It does now check
for magic_qoutes,
function process_array(&$_p, $array)
{
$_appname = check_app();
while (is_array($array) && list($var,$value) = each($array))
{
if (isset($value) && $value != '' && $value != '**NULL**')
{
if(get_magic_quotes_gpc())
{
$_p->add($_appname,$var,stripslashes($value));
}
else
{
$_p->add($_appname,$var,$value);
}
}
else
{
unset($_p->data[$_appname][$var]);
}
}
$_p->save_repository(True);
}
Cu
--
"Lars Kneschke"
- [Phpgroupware-developers] FelaMiMail Preferences, Bob Crandell, 2003/03/19
- Re: [Phpgroupware-developers] FelaMiMail Preferences, Chris Weiss, 2003/03/19
- Re: [Phpgroupware-developers] FelaMiMail Preferences, Bob Crandell, 2003/03/19
- Re: [Phpgroupware-developers] FelaMiMail Preferences, Lars Kneschke(priv.), 2003/03/19
- Re: [Phpgroupware-developers] FelaMiMail Preferences, Bob Crandell, 2003/03/19
- Re: [Phpgroupware-developers] FelaMiMail Preferences,
Lars Kneschke(priv.) <=
- Re: [Phpgroupware-developers] FelaMiMail Preferences, Lars Kneschke(priv.), 2003/03/20
- Re: [Phpgroupware-developers] FelaMiMail Preferences, Bob Crandell, 2003/03/20
- Re: [Phpgroupware-developers] FelaMiMail Preferences, Lars Kneschke(priv.), 2003/03/20