summaryrefslogtreecommitdiff
path: root/ifilter.c
diff options
context:
space:
mode:
authorBen Fuhrmannek2014-07-11 16:13:29 +0200
committerBen Fuhrmannek2014-07-11 16:13:29 +0200
commitd5b13494cb7ef97bfe2efb7446badbabb4e7f141 (patch)
tree649e6f293911684fdafdc754710524e9d0eaadcb /ifilter.c
parent940509ed02db713920612b0994a57d6227c3655c (diff)
disallow_ws now matches all single-byte whitespace characters
Diffstat (limited to 'ifilter.c')
-rw-r--r--ifilter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ifilter.c b/ifilter.c
index cd02869..8b2e8a3 100644
--- a/ifilter.c
+++ b/ifilter.c
@@ -366,7 +366,7 @@ unsigned int suhosin_input_filter(int arg, char *var, char **val, unsigned int v
366 } 366 }
367 367
368 /* Drop this variable if it begins with whitespace which is disallowed */ 368 /* Drop this variable if it begins with whitespace which is disallowed */
369 if (*var == ' ') { 369 if (isspace(*var)) {
370 if (SUHOSIN_G(disallow_ws)) { 370 if (SUHOSIN_G(disallow_ws)) {
371 suhosin_log(S_VARS, "request variable name begins with disallowed whitespace - dropped variable '%s'", var); 371 suhosin_log(S_VARS, "request variable name begins with disallowed whitespace - dropped variable '%s'", var);
372 if (!SUHOSIN_G(simulation)) { 372 if (!SUHOSIN_G(simulation)) {