Permalink
Browse files

TTN #6 - added parameter pass by reference to is_valid_rr_srv_content()

  • Loading branch information...
1 parent 9b76948 commit d5b0504ad0e0448a87670632a0e9637b5865f074 Edmondas Girkantas committed Jun 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 inc/dns.inc.php
View
@@ -425,7 +425,7 @@ function is_valid_rr_srv_name(&$name){
return true ;
}
-function is_valid_rr_srv_content($content) {
+function is_valid_rr_srv_content(&$content) {
$fields = preg_split("/\s+/", trim($content), 3);
if (!is_numeric($fields[0]) || $fields[0] < 0 || $fields[0] > 65535) { error(ERR_DNS_SRV_WGHT) ; return false; }
if (!is_numeric($fields[1]) || $fields[1] < 0 || $fields[1] > 65535) { error(ERR_DNS_SRV_PORT) ; return false; }

0 comments on commit d5b0504

Please sign in to comment.