Browse code

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

Marius Zbihlei authored on 14/10/2010 08:53:11
Showing 1 changed files
... ...
@@ -289,7 +289,7 @@ static int check_user_list(struct sip_msg *msg, char* str1, char* str2, char* st
289 289
 
290 290
 	ptr = req_number;
291 291
 	/* Skip over non-digits.  */
292
-	while (strlen(ptr) > 0 && !isdigit(*ptr)) {
292
+	while (match_mode == 10 && strlen(ptr) > 0 && !isdigit(*ptr)) {
293 293
 		ptr = ptr + 1;
294 294
 	}
295 295