Learning by wondering
06 06 09 - 12:30 Since I installed my blog software "Pivot" on my server I had problems with links and URLs. Every link had always the base-URL as prefix which led to links like http://mftech.org/blog/\"http://www.google.de\".The root of the problem was easily found: While inserting the link something escaped the quotes which led to an unvalid string. First I thought that there was a bug in Pivot. So I installed the software for testing on my local web server and wondered...Everything worked fine.
But where was the difference between both servers? Difference between Windows and Linux? Nay.
Finally I found the cause in the php.ini. The parameter magic_quotes_gpc was set to 'on' on my server. And while it is, every string send by post, get or cookies will be escaped. After searching around I found out that this feature is deprecated since PHP 5 and removed in PHP 6.0. However, after switching it off everything worked fine. But I am still wondering about the default settings of my provider ...
Trackback link:Please enable javascript to generate a trackback url