andre 3 жил өмнө
parent
commit
3662a9cf5f
1 өөрчлөгдсөн 4 нэмэгдсэн , 1 устгасан
  1. 4 1
      cwp7.php

+ 4 - 1
cwp7.php

@@ -340,7 +340,10 @@ function cwp7_newDomain($params) {
 }
 
 function cwp7_addDomain($params) {
-
+	if(filter_var($_POST['d'], FILTER_VALIDATE_DOMAIN)){
+		return 'Error: invalid domain name';
+	}
+	
 	logModuleCall(
 		'cwp7',
 		__FUNCTION__,