adds slashes

Home Forums Pie-Register 2.0 Support adds slashes

This topic contains 4 replies, has 3 voices, and was last updated by  Hasnain Abbas 1 year, 8 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #4493

    flow
    Participant

    Hello,

    Slashes are added before apostrophe on submit ( in front and back office )
    How can i fix ?

    #4494

    Hasnain Abbas
    Keymaster

    Hello,

    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

    #4495

    flow
    Participant

    Thanks for your answer, but magic_quotes_gpc are disable.
    No problem when wordpress save data but only when pie save field…

    #4796

    James James
    Participant

    I 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?

    #4797

    Hasnain Abbas
    Keymaster

    Hello,

    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

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.