inc/dns.inc.php
changeset 200 6bdfaba077cb
parent 193 6a87ca695244
equal deleted inserted replaced
199:bb95eaab943d 200:6bdfaba077cb
   268 	} else {
   268 	} else {
   269 		$fields = preg_split('/ /', $content, 2);
   269 		$fields = preg_split('/ /', $content, 2);
   270 	}
   270 	}
   271 
   271 
   272 	for ($i = 0; ($i < 2); $i++) {
   272 	for ($i = 0; ($i < 2); $i++) {
   273 		if (!preg_match("/^([^\s]{1,1000}|\"([^\"]{1,998}\")$/i", $fields[$i])) {
   273 		if (!preg_match("/^([^\s]{1,1000}|\"([^\"]{1,998}\"))$/i", $fields[$i])) {
   274 			error(ERR_DNS_HINFO_INV_CONTENT); return false;
   274 			error(ERR_DNS_HINFO_INV_CONTENT); return false;
   275 		}
   275 		}
   276 	}
   276 	}
   277 
   277 
   278 	return true;
   278 	return true;