Colon

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
spacebiscuit
Forum Contributor
Posts: 390
Joined: Mon Mar 07, 2005 3:20 pm

Colon

Post by spacebiscuit »

Hi guys,

I have written my own CMS system (PHP and Mysql). I recently switched hosts so I guess my problem relates to the server configuration.

When I try to post an article, if a filed contains a link such as :

Code: Select all

http://www.google.com
I get the folllowing error:

You don't have permission to access /admin/insert.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


If I repost with the colon removed from the URL it posts without any problem. Upon submit all I'm doing is using addslashes() to deal with apostrophes. I have of course checked the permissions of the insert.php file.

This seems like a strange problem - is there a way to escape the colon character?

Thanks,

Rob.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Colon

Post by requinix »

Colons don't really have any special meaning. Good for digestion but not much beyond that.

I've seen 403s delivered when there's a problem with the script.
Debug your code. You can post it if you need help with that.
Post Reply