Browse Source

modules_k/userblacklist: Fixed alphanum checking if number had trailing non-digit char

Marius Zbihlei 15 years ago
parent
commit
d128ac966b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules_k/userblacklist/userblacklist.c

+ 1 - 1
modules_k/userblacklist/userblacklist.c

@@ -289,7 +289,7 @@ static int check_user_list(struct sip_msg *msg, char* str1, char* str2, char* st
 
 	ptr = req_number;
 	/* Skip over non-digits.  */
-	while (strlen(ptr) > 0 && !isdigit(*ptr)) {
+	while (match_mode == 10 && strlen(ptr) > 0 && !isdigit(*ptr)) {
 		ptr = ptr + 1;
 	}