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!
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!
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
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
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.
Well... If you get any ideas, please inform me. For now I will bypass this by putting the code straight to DB manually.
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
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
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...
$_POST['html']=stripslashes($_POST['html']);
just before bind to make it work... Strange...
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.
This topic is locked and no more replies can be posted.