Problems showing double backslashes

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

BSOD2600
Posts: 36
Joined: Thu Nov 10, 2005 4:50 am
Location: USA

Post by BSOD2600 » Tue Jan 03, 2006 11:10 pm

phpinfo link sent in PM.
| phpmyfaq 1.6.3 |
| MySQL 4.1.18 | PHP 4.4.2 | Apache |

Thorsten
Posts: 15025
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten » Wed Jan 04, 2006 8:47 am

Hi,

okay, I can confirm this bug then magice quotes are turned on. I'm working on a fix. I thought we fixed that... :-(

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Thorsten
Posts: 15025
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten » Wed Jan 04, 2006 9:04 am

Hi,

please open the file inc/init.php and change the following function:

Code: Select all

    function removeMagicQuotesGPC($data)
    {
        if (get_magic_quotes_gpc()) {
            $addedData = array();
            foreach ($data as $key => $val) {
                $key = addslashes($key);
                if (is_array($val)) {
                    $addedData[$key] = PMF_Init::removeMagicQuotesGPC($val);
                } else {
                    $addedData[$key] = $val;
                }
            }
            return $addedData;
        }
        return $data;
    }
You have to add the second backslash after that and save the record. Then it should work.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

BSOD2600
Posts: 36
Joined: Thu Nov 10, 2005 4:50 am
Location: USA

Post by BSOD2600 » Wed Jan 04, 2006 7:50 pm

Alright, seems to be fixed after applying that. I assume this will come out with 1.5.6? When is that coming out?
| phpmyfaq 1.6.3 |
| MySQL 4.1.18 | PHP 4.4.2 | Apache |

Thorsten
Posts: 15025
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten » Wed Jan 04, 2006 9:32 pm

Hi,

1.5.6 will be out the next two weeks.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply