Skip to content

Commit

Permalink
TTN #6 - added parameter pass by reference to is_valid_rr_srv_content()
Browse files Browse the repository at this point in the history
  • Loading branch information
Edmondas Girkantas committed Jun 20, 2010
1 parent 9b76948 commit d5b0504
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/dns.inc.php
Expand Up @@ -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; }
Expand Down

0 comments on commit d5b0504

Please sign in to comment.