phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-developers] FelaMiMail Preferences


From: Ralf Becker
Subject: Re: [Phpgroupware-developers] FelaMiMail Preferences
Date: Thu, 20 Mar 2003 18:41:57 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529

Hi Lars,

why not add set_magic_quotes_runtime(0); somewhere in header.inc.php or phpgwapi/inc/function.inc.php.

If seen this in the code of some other apps. It works unless php is run in safe_mode, but that messes up a lot of other stuff too.

Ralf

Lars Kneschke(priv.) wrote:
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 mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/phpgroupware-developers


--
----------------------------------------------------------------------
Ralf Becker
digital ROCK, Becker & Macht GbR            Telefon +49 (631) 31657-51
Leibnizstraße 17                            Telefax +49 (631) 31657-52
D-67663 Kaiserslautern                 EMail address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]