Cleanup path nomalization routine and add some further regression tests (MODSEC-123).

This commit is contained in:
b1v1r
2010-02-05 18:38:56 +00:00
parent 04fe141c73
commit 6748e04996
3 changed files with 16 additions and 4 deletions

View File

@@ -1172,10 +1172,8 @@ int normalise_path_inplace(unsigned char *input, int input_len, int win, int *ch
*changed = 0;
/* Need more than one character to normalize */
if (input_len < 1) {
return ldst;
}
/* Need at least one byte to normalize */
if (input_len <= 0) return 0;
/*
* ENH: Deal with UNC and drive letters?