ASF Bugzilla – Attachment 31285 Details for
Bug 51543
Space in username not properly escaped in log files (%u)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Hi, i wrote a little patch for this old bug. It replaces the space in usernames with an : in the "log_remote_user" function.
bug_51543.diff (text/plain), 681 bytes, created by
Seb
on 2014-02-05 15:47:22 UTC
(
hide
)
Description:
Hi, i wrote a little patch for this old bug. It replaces the space in usernames with an : in the "log_remote_user" function.
Filename:
MIME Type:
Creator:
Seb
Created:
2014-02-05 15:47:22 UTC
Size:
681 bytes
patch
obsolete
>Index: modules/loggers/mod_log_config.c >=================================================================== >--- modules/loggers/mod_log_config.c (Revision 1556471) >+++ modules/loggers/mod_log_config.c (Arbeitskopie) >@@ -330,6 +330,16 @@ > else if (strlen(rvalue) == 0) { > rvalue = "\"\""; > } >+ else if (strlen(rvalue) >= 0) { >+ char *caUsername = apr_pstrdup(r->pool, rvalue); >+ int n, i = strlen(caUsername); >+ for(n = 0;n < i; n++) { >+ if(caUsername[n] == ' ') { >+ caUsername[n] = ':'; >+ } >+ } >+ rvalue = ap_escape_logitem(r->pool, caUsername); >+ } > else { > rvalue = ap_escape_logitem(r->pool, rvalue); > }
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 51543
: 31285