getting unnecessary /%22 added to links

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
garaiko
Forum Newbie
Posts: 2
Joined: Wed Oct 19, 2011 10:49 pm

getting unnecessary /%22 added to links

Post by garaiko »

Hello, the links on my php site aren't working since I moved it to a new server. MySQL database content shows href="/pdf/myfile.pdf" for example but on the site the program link takes you to http://www.domain.com/%22/pdf/myfile.pdf/%22

Do you know why? It didn't happen in the other server. How can I get it handled?

Thank you.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: getting unnecessary /%22 added to links

Post by Celauran »

%22 is an escaped double quote. Have you done a var_dump of the database results?
garaiko
Forum Newbie
Posts: 2
Joined: Wed Oct 19, 2011 10:49 pm

Re: getting unnecessary /%22 added to links

Post by garaiko »

No, I haven't, I don't even know what it is. I am an expert in html programming but I don't know much about php. Are you an expert with php?
Post Reply