Page 1 of 1

Colon

Posted: Thu Mar 18, 2010 5:58 am
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.

Re: Colon

Posted: Thu Mar 18, 2010 6:46 am
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.