mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-26 12:14:56 +00:00
make match_prefix() case-insensitive
This commit is contained in:
1 parent
f32e14478f
commit
62d66201c9
3 files changed
+5
-3
No files matched your search
+1
-1
@@ -171,7 +171,7 @@ my $cmd = "$mongoose_exe ".
|
||||
'-put_delete_auth_file test/passfile ' .
|
||||
'-access_control_list -0.0.0.0/0,+127.0.0.1 ' .
|
||||
"-document_root $root ".
|
||||
"-hide_files_patterns **exploit.pl ".
|
||||
"-hide_files_patterns **exploit.PL ".
|
||||
"-enable_keep_alive yes ".
|
||||
"-url_rewrite_patterns /aiased=/etc/,/ta=$test_dir";
|
||||
$cmd .= ' -cgi_interpreter perl' if on_windows();
|
||||
|
||||
+2
-1
@@ -154,7 +154,8 @@ static void test_match_prefix(void) {
|
||||
ASSERT(match_prefix("*", 1, "/hello/") == 0);
|
||||
ASSERT(match_prefix("**.a$|**.b$", 11, "/a/b.b/") == -1);
|
||||
ASSERT(match_prefix("**.a$|**.b$", 11, "/a/b.b") == 6);
|
||||
ASSERT(match_prefix("**.a$|**.b$", 11, "/a/b.a") == 6);
|
||||
ASSERT(match_prefix("**.a$|**.b$", 11, "/a/B.A") == 6);
|
||||
ASSERT(match_prefix("**o$", 4, "HELLO") == 5);
|
||||
}
|
||||
|
||||
static void test_remove_double_dots() {
|
||||
|
||||
Reference in new issue
Block a user