浏览代码

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

Marius Zbihlei 15 年之前
父节点
当前提交
d128ac966b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
 	}