Quotes problem with 1.5 b 2

teniemi 04 Jul, 2007
Hi!

I'm testing ChronoForms with 1.5 beta 2 and with legacy support it seems to work quite fine. When saving a form every quote is changed to slash quote eg. " to \" and \" to \\"

I could try to fix this myself, but could you point me to the right direction?

Thanks!
GreyHead 04 Jul, 2007
Hi teniemi,

I'm on the road for a few days and don't have easy access to the ChronoForms code. This looks like a magic_quotes / addslashes problem see here for example. From memory I think the code for a database save is in admin.chronocontact.php though the function is called at the end of chronocontact.php

Hope this helps

Bob
teniemi 04 Jul, 2007
I found that the error happens when bind() is called during save. I couldn't trace where the bind comes from, at least I didn't find it in legacy code and other modules save correctly so I don't think it would be a problem with 1.5 code either...

Well... If you get any ideas, please inform me. For now I will bypass this by putting the code straight to DB manually.
Max_admin 04 Jul, 2007
hi Teniemi,

The bind just binds the $_POST variables to the DB table column names with the same name, if it has this problem then I think its a new issue with the bind function implementation at 1.5, I will be sure all works fine with 1.5 when we have a 1.5 stable version🙂

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
teniemi 04 Jul, 2007
Found little more.. It seems that it's broken even in the _POST before binding. I put
$_POST['html']=stripslashes($_POST['html']);

just before bind to make it work... Strange...
Max_admin 04 Jul, 2007
This doesn't happen with a joomla 1.0 at the same server? this issue is more related to the magic quotes setting at the server, its really very annoying sometimes.
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
teniemi 04 Jul, 2007
Seems to work fine with 1.0.12.. Maybe there's some problems with 1.5 b2 legacy code which breaks the _POST for legacy modules since everything else is working correctly within 1.5 b2
This topic is locked and no more replies can be posted.