PDA

View Full Version : All double quotes are escaped?


mhr
10-31-2005, 02:14 AM
I have recently installed pixelpost. Most of it went smoothly.
I host my own website.
I tried to post my first picture and I am getting a very strange problem.
One that I cannot find anyone else on the forum as having.

My index.php generates bad html links. You can view the source of http://www.neverthere.org/pixelpost or here is just one example:

<a href=\"index.php?x=browse\" title=\"Browse\">Browse</a>

This does NOT match the demo web page output. Which looks like this:

<a href="index.php?x=browse" title="Browse">Browse</a>

Every double quoted character index.php outpus has a slash prepended to it.
The URL generated is of this order:

http://neverthere.org/pixelpost/%5C%22index.php?x=browse\%22

Then I get:
The requested URL /pixelpost/\"index.php?x=browse" was not found on this server.

This is counfounding me.

Here is my setup:

> PHP-version 4.3.10 (Pixelpost's min requirement: PHP version 4.3.0)
> MySQL version 4.1.7 (Pixelpost's min requirement: MySQL 3.23.58)
> GD-lib bundled (2.0.28 compatible) with JPEG support
> Server software Apache/2.0.52 (FreeBSD) DAV/2 PHP/4.3.10 mod_ssl/2.0.52 OpenSSL/0.9.7d
> EXIF Pixelpost is using exifer v1.5 for EXIF information.

Note my GD-lib contains jpeg support.

And my path output looks ok too:

> Guessed imagepath: /usr/local/www/data/neverthere/pixelpost/images/
> Configured Imagepath ../images/
> Image Directory: OK - Can we write to the directory? YES.
> Thumbnails Directory: OK - Can we write to the directory? YES.
> Language Directory: OK
> Addons Directory: OK
> Includes Directory: OK
> Templates Directory: OK

My image path matches my guessed path. Everything is chmodded
correctly.

Any ideas? Thanks in advance.

mhr

mhr
10-31-2005, 02:18 AM
Oh I forgt to mention I am running:

Version 1.4.2 of Pixelpost. Released 18 July 2005.

mhr

mhr
10-31-2005, 04:14 AM
I found the answer. magic_quotes was set to on in my php.ini file.
Once I turned them off everything works fine.

mhr

Connie
10-31-2005, 05:06 AM
I am glad you found the answer yourself, I was not online so I could not answer in time ;=)