You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2007/06/11 18:35:01 UTC
DO NOT REPLY [Bug 42635] New: - Problems with escaping %2 in a url - mod-rewrite
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=42635>.
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=42635
Summary: Problems with escaping %2 in a url - mod-rewrite
Product: Apache httpd-2
Version: 2.3-HEAD
Platform: Other
OS/Version: other
Status: NEW
Severity: critical
Priority: P1
Component: mod_rewrite
AssignedTo: bugs@httpd.apache.org
ReportedBy: mani55119@yahoo.com
CC: mani55119@yahoo.com
Hi,
I've a rewrite rule as follows wherein i need to escape %2. The Apache
webserver seems to be converting %2 to %25 automatically. How do i fix this?
Any help would be greatly appreciated.
RewriteRule ^/XT1 http://www.egroupnet.com/3m/commercialcare/xt%2D1/
[R=301,L,NS,NC]
I tried with "unescape", but of no use.
RewriteMap unescaper int:unescape
RewriteRule ^/XT1 http://www.egroupnet.com/3m/commercialcare/xt${unescaper:\%2}
D1/ [R=301,L,NS,NC]
--
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 42635] - Problems with escaping %2 in a url - mod-rewrite
Posted by bu...@apache.org.
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=42635>.
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=42635
rpluem@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
------- Additional Comments From rpluem@apache.org 2007-06-11 13:12 -------
How about
RewriteRule ^/XT1 http://www.egroupnet.com/3m/commercialcare/xt\%2D1/
[R=301,L,NS,NC,NE]
?
--
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 42635] - Problems with escaping %2 in a url - mod-rewrite
Posted by bu...@apache.org.
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=42635>.
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=42635
mani55119@yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution| |FIXED
------- Additional Comments From mani55119@yahoo.com 2007-06-11 22:59 -------
(In reply to comment #0)
> Hi,
> I've a rewrite rule as follows wherein i need to escape %2. The Apache
> webserver seems to be converting %2 to %25 automatically. How do i fix this?
> Any help would be greatly appreciated.
> RewriteRule ^/XT1 http://www.egroupnet.com/3m/commercialcare/xt%2D1/
> [R=301,L,NS,NC]
> I tried with "unescape", but of no use.
> RewriteMap unescaper int:unescape
> RewriteRule ^/XT1 http://www.egroupnet.com/3m/commercialcare/xt${unescaper:\%
2}
> D1/ [R=301,L,NS,NC]
(In reply to comment #0)
> Hi,
> I've a rewrite rule as follows wherein i need to escape %2. The Apache
> webserver seems to be converting %2 to %25 automatically. How do i fix this?
> Any help would be greatly appreciated.
> RewriteRule ^/XT1 http://www.egroupnet.com/3m/commercialcare/xt%2D1/
> [R=301,L,NS,NC]
> I tried with "unescape", but of no use.
> RewriteMap unescaper int:unescape
> RewriteRule ^/XT1 http://www.egroupnet.com/3m/commercialcare/xt${unescaper:\%
2}
> D1/ [R=301,L,NS,NC]
(In reply to comment #1)
> How about
> RewriteRule ^/XT1 http://www.egroupnet.com/3m/commercialcare/xt\%2D1/
> [R=301,L,NS,NC,NE]
> ?
Hi,
This really did work. Thanks a lot for your help.
--
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org