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