DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34602>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34602





------- Additional Comments From [EMAIL PROTECTED]  2007-05-18 19:37 -------
Just to put my work around for my PHP problem with amiguous escaping with '+' 
signs in a rewrite rule here so someone might find it useful, thanks to Bob 
Ionescu and Mike Weller for their leads. 

// in the .htaccess file or vhost
// accept letters, plus signs and encoded plus signs
RewriteCond %{THE_REQUEST} /test/(([a-z]|%2b|\+|)+)*/? [NC]
RewriteRule . test.php?cat=%1 [NE,L] 

// php code for test.php
<?
print_r($_GET);
?>

// URL with encoded spaces which are +'s
www.domain.com/test/c++stuff
// gives
array( [cat] => c stuff) // multiple plus signs are decoded to 1 space by PHP

// URL with encoded +'s
www.domain.com/test/c%2b%2bstuff
// gives
array( [cat] => c++stuff ) // correctly decodes an encoded +

Hope this helps someone.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to