Mod Cplusplus CVS committal
Author : johnksterling
Project : mod_cplusplus
Module : example
Dir : mod_cplusplus/example/input_filter
Modified Files:
test_input.cpp
Log Message:
the input filter test was failing for users who had a apache configuration file already set up with a hostname. To fix this I changed the filter example and test case to filter a portion of the standard header instead of client provided content. Submitted by William F. Dowling <wil...@th...>
===================================================================
RCS file: /cvsroot/modcplusplus/mod_cplusplus/example/input_filter/test_input.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- test_input.cpp 15 Aug 2003 22:46:02 -0000 1.12
+++ test_input.cpp 18 May 2004 02:50:18 -0000 1.13
@@ -47,8 +47,8 @@
return ret;
}
for(unsigned int n=0 ; n < len ; ++n) {
- if(!strncmp(&data[n], "localhost", 8))
- new_buf[n]=toupper(data[n]);
+ if(!strncmp(&data[n], "Host", 4))
+ new_buf[n]=tolower(data[n]);
else
new_buf[n] = data[n];
}
|