As you may know, the search module puts a space between the search terms when you want to go to another page of results. For example, "http://www.example.com/search/term1 term2". I this is causeing an Internal Server Error on my host (fatcow). When I asked them about it, I got this responce:
We apologize for any inconvenience this may have caused you. Unfortunately, you cannot specify spaces in the URL’s. Please note that spaces and special control characters are generally not a good idea. The underscore character ("_") is acceptable. You should avoid special characters (! @ # $ % ^ & *: ') in file names. We suggest that you keep the length of file names to a minimum. The tilde (~) cannot be used in directory or file names. Please check it and make the necessary changes (you can use FTP) and let us know if you have any questions.
Is there anything I can do about this, short of modifying the drupal core? I'm planning on switching hosts in March because I've had enough of fatcow's antics. Cow jokes are not funny anymore!
Thanks for any help!
Comments
simple replace code
You can use preg_replace(" ", "%20", $string);