Jump to content

Passing %20 (space) and other chars to an URL - PHP4 v PHP5


Recommended Posts

A php script which has been running for some years has suddenly started generating a Forbidden 403 error and this seems to coincide with the host upgrading from php4 to php5.  A number of items are passed in the URL including spaces represented as %20 and I think single quotation mark represented as %27 ... I suspect these may be responsible for the error.  Can anyone confirm that's likely to be the case and suggest the best way to deal with it?

 

TIA.

 

 

I really am not sure but I didn't some research and this article/blog came up.  ModWest 403

 

Seems like it could be an Apache config or .htaccess problem...

 

I can access the script on it's own, that doesn't give a 403, it's when I call it and pass parameters in the URL that the Forbidden message crops up ...

 

Having said that it is likely to be related to Apache rather than php isn't it .. I'll raise a support ticket and ask the host provider ...

 

__

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.