ASF Bugzilla – Attachment 33414 Details for
Bug 49746
mod_rewrite urlencode option
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add urlencode function.
mod_rewrite_2-2-31_patch_add_urlencode.txt (text/plain), 938 bytes, created by
Philippe Lantin
on 2016-01-06 23:48:38 UTC
(
hide
)
Description:
Add urlencode function.
Filename:
MIME Type:
Creator:
Philippe Lantin
Created:
2016-01-06 23:48:38 UTC
Size:
938 bytes
patch
obsolete
>--- httpd-2.2.31/modules/mappers/mod_rewrite.c.ORIG 2016-01-05 15:11:44.189957990 -0800 >+++ httpd-2.2.31/modules/mappers/mod_rewrite.c 2016-01-06 08:46:57.393521281 -0800 >@@ -54,6 +54,7 @@ > #include "apr_signal.h" > #include "apr_global_mutex.h" > #include "apr_dbm.h" >+#include "apr_escape.h" > > #if APR_HAS_THREADS > #include "apr_thread_mutex.h" >@@ -1110,6 +1111,12 @@ > return key; > } > >+static char *rewrite_mapfunc_urlencode(request_rec *r, char *key) >+{ >+ return (char *)apr_pescape_urlencoded(r->pool, key); >+} >+ >+ > static char *rewrite_mapfunc_escape(request_rec *r, char *key) > { > return ap_escape_uri(r->pool, key); >@@ -4186,6 +4193,7 @@ > map_pfn_register("toupper", rewrite_mapfunc_toupper); > map_pfn_register("escape", rewrite_mapfunc_escape); > map_pfn_register("unescape", rewrite_mapfunc_unescape); >+ map_pfn_register("urlencode", rewrite_mapfunc_urlencode); > } > return OK; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 49746
: 33414