PHP Removing ampersand from URL

Michael.Terence

Verified User
Joined
Feb 15, 2009
Messages
59
Strange issue...

One of my clients uses an RSS sidebar widget to display text adds on her wordpress site. The RSS feed is located here:http://ss.mysavings.com/rss.asp?pid=60

The feed includes URLs like this: http://ss.mysavings.com/offer-redirect.asp?oid=160&pid=60 (note the ampersand) - after moving her to my new DirectAdmin powered server, the URLs are showing up without the ampersand: http://ss.mysavings.com/offer-redirect.asp?oid=160pid=60

As some of you will quickly notice, I am running litespeed - I have tested her site with the custombuild apache/php install provided by the DirectAdmin installer and that does the same thing.

My php configure line is:
--enable-shmop --enable-track-vars --enable-sysvsem --enable-sysvshm --enable-bcmath --enable-calendar --with-openssl --enable-exif --enable-ftp --enable-gd-native-ttf --enable-libxml --enable-mbstring --enable-pdo --enable-soap --enable-sockets --enable-zip --with-bz2 --with-curl --with-curlwrappers --with-freetype --with-gd --with-gettext --with-imap --with-imap-ssl --with-jpeg-dir=/opt --with-png-dir=/opt --with-libxml --with-mcrypt --with-mhash --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysql --with-mysqli --with-pdo-mysql --with-sqlite --with-pdo-sqlite --with-pic --with-ttf --with-zpm --with-xsl --with-zlib --with-snmp --with-imagick --with-iconv --with-zip --with-curl-ssl --with-xpm-dir=/opt --with-kerberos --enable-magic-quotes

What's stranger still, is that on my previous Debian server (not a DA server) this worked fine, same php config line, same php.ini, same litespeed config.

I don't want to make this a litespeed issue, because it's not. It's broken in apache too.
 
Any chance there's a messed up htaccess file causing problems?
 
Nope, I don't host http://ss.mysavings.com/rss.asp?pid=60

The script that grabs the feed is the wordpress RSS widget code - her site (including the RSS functionality) works fine on a debian server I have - the only thing that changed is I moved her account to the CentOS powered DA server.

There has to be a configuration setting, a library, or something causing this at the server level because it will not work with the custombuild apache/php versions supplied by DA, or with litespeed or the php I compiled for it.
 
I've tested pulling the feed with magpie, lastrss, and a couple other RSS tools. All of them remove the ampersand.
 
The example page posted looks fine. I'm guessing you fixed the problem?
 
www.dealseekingmom.com is the example, search for "Free Samples Coupons" - Under that header you'll see the links.

The script that is outputting the URLs is just the standard Wordpress RSS widget (the one that comes standard with every wordpress install)

Does anyone have a CentOS 5.2 powered DA server we can try to reproduce the issue on?
 
www.dealseekingmom.com is the example, search for "Free Samples Coupons" - Under that header you'll see the links.

The script that is outputting the URLs is just the standard Wordpress RSS widget (the one that comes standard with every wordpress install)

Does anyone have a CentOS 5.2 powered DA server we can try to reproduce the issue on?

i got centos 5.0 with DA.
 
Back
Top