- This topic has 4 replies, 3 voices, and was last updated 9 years, 7 months ago by
Pie Register.
- AuthorPosts
- April 28, 2016 at 2:44 pm #10004493
flowParticipantHello,
Slashes are added before apostrophe on submit ( in front and back office )
How can i fix ?April 29, 2016 at 2:58 pm #10004494
Pie RegisterParticipantHello,
Please ask your host to disable magic_quotes_gpc on your hosting, if this is not an option for you, you will need to add the following snippet:
if (get_magic_quotes_gpc()) { $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST); while (list($key, $val) = each($process)) { foreach ($val as $k => $v) { unset($process[$key][$k]); if (is_array($v)) { $process[$key][stripslashes($k)] = $v; $process[] = &$process[$key][stripslashes($k)]; } else { $process[$key][stripslashes($k)] = stripslashes($v); } } } unset($process); }Thanks
April 29, 2016 at 7:46 pm #10004495
flowParticipantThanks for your answer, but magic_quotes_gpc are disable.
No problem when wordpress save data but only when pie save field…December 15, 2016 at 2:54 pm #10004796
James JamesParticipantI have the very same issue.
The problem isn’t with magic quotes but with pie register plugin.
Moreover if I use phpmyadmin to remove the slashes added by pie register, the plugin simply breaks.
Can you help?
December 16, 2016 at 3:19 pm #10004797
Pie RegisterParticipantHello,
What version of PR you are using and where is that happening? Its more of a Hosting/Server Configuration issue than the plugin itself. however please provide further details so we can get back to you with the solution.
Thanks
- AuthorPosts
- The forum ‘Pie-Register 2.0 Support’ is closed to new topics and replies.
