Searched refs:urlpath (Results 1 – 2 of 2) sorted by relevance
| /lighttpd1.4/src/t/ |
| H A D | test_mod_access.c | 13 buffer *urlpath = buffer_init(); in test_mod_access_check() local 17 buffer_copy_string_len(urlpath, CONST_STR_LEN("/")); in test_mod_access_check() 18 assert(1 == mod_access_check(allow, deny, urlpath, lc)); in test_mod_access_check() 25 assert(0 == mod_access_check(allow, deny, urlpath, lc)); in test_mod_access_check() 27 buffer_copy_string_len(urlpath, CONST_STR_LEN("/index.INC")); in test_mod_access_check() 28 assert(0 == mod_access_check(allow, deny, urlpath, lc)); in test_mod_access_check() 36 assert(1 == mod_access_check(allow, deny, urlpath, lc)); in test_mod_access_check() 39 assert(1 == mod_access_check(allow, deny, urlpath, lc)); in test_mod_access_check() 43 buffer_copy_string_len(urlpath, CONST_STR_LEN("/cgi.pl")); in test_mod_access_check() 44 assert(0 == mod_access_check(allow, deny, urlpath, lc)); in test_mod_access_check() [all …]
|
| /lighttpd1.4/src/ |
| H A D | mod_access.c | 99 …(const array * const allow, const array * const deny, const buffer * const urlpath, const int lc) { in mod_access_check() argument 103 ? array_match_value_suffix(allow, urlpath) in mod_access_check() 104 : array_match_value_suffix_nc(allow, urlpath); in mod_access_check() 110 ? array_match_value_suffix(deny, urlpath) in mod_access_check() 111 : array_match_value_suffix_nc(deny, urlpath); in mod_access_check()
|