浏览代码

Update cr.c

wibyweb 2 年之前
父节点
当前提交
500b173863
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      c/cr.c

+ 9 - 0
c/cr.c

@@ -479,6 +479,15 @@ int main(int argc, char **argv)
 					urltoolong=1;
 					printf("\nURL is too long");
 				}
+				
+				int finalURLcount=0;
+				while(finalURL[finalURLcount]!=0){
+					if(finalURL[finalURLcount]=='\''){
+						urltoolong=1;//reusing this
+						printf("\nURL contains single-quote. Skipping.");
+					}
+					finalURLcount++;
+				}				
 
 				char finalURLnoprefix[finalURLsize-prefixsize+100];
 				char httpAllow[] = "0";