- Timestamp:
- Sep 22, 2012, 5:28:48 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/trunk/include/functions.inc.php
r18152 r18158 2367 2367 for ($i = 0 ; $i < count($conf_CharExclusion) ; $i++) 2368 2368 { 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2369 //Detect meta-characters (# ! ^ $ ( ) [ ] { } ? + * . \ -) for special pattern 2370 if ($conf_CharExclusion[$i] == "#" 2371 or $conf_CharExclusion[$i] == "$" 2372 or $conf_CharExclusion[$i] == "!" 2373 or $conf_CharExclusion[$i] == "^" 2374 or $conf_CharExclusion[$i] == "*" 2375 or $conf_CharExclusion[$i] == "?" 2376 or $conf_CharExclusion[$i] == "+" 2377 or $conf_CharExclusion[$i] == "." 2378 or $conf_CharExclusion[$i] == "\\" 2379 or $conf_CharExclusion[$i] == "|" 2380 or $conf_CharExclusion[$i] == "[" 2381 or $conf_CharExclusion[$i] == "]" 2382 or $conf_CharExclusion[$i] == "(" 2383 or $conf_CharExclusion[$i] == ")" 2384 or $conf_CharExclusion[$i] == "{" 2385 or $conf_CharExclusion[$i] == "}" 2386 or $conf_CharExclusion[$i] == "-") 2387 { 2388 $pattern = '/[][^$.\*+?(){}#|-]/i'; 2389 } 2390 else 2391 { 2392 $pattern = '/'.$conf_CharExclusion[$i].'/i'; 2393 } 2394 2394 2395 2395 if (preg_match($pattern, $login))
Note: See TracChangeset
for help on using the changeset viewer.