Skip to content

Commit fe0bcd1

Browse files
author
Florian Schaal
committed
sql-query
1 parent f93927c commit fe0bcd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/lib/classes/tform_base.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ function validateField($field_name, $field_value, $validators) {
10391039
break;
10401040
case 'V6PREFIXLENGTH':
10411041
// find shortes ipv6 subnet can`t be longer
1042-
$sql_v6 = $app->db->queryOneRecord("SELECT ip_address FROM server_ip WHERE ip_type = 'IPv6' AND virtualhost = 'y' ORDER BY CHAR_LENGTH(ip_address) ASC LIMIT 0,1;");
1042+
$sql_v6 = $app->db->queryOneRecord("SELECT ip_address FROM server_ip WHERE ip_type = 'IPv6' AND virtualhost = 'y' ORDER BY CHAR_LENGTH(ip_address) ASC LIMIT 0,1");
10431043
$sql_v6_explode=explode(':',$sql_v6['ip_address']);
10441044
$explode_field_value = explode(':',$field_value);
10451045
if (count($sql_v6_explode) < count($explode_field_value) && isset($sql_v6['ip_address'])) {

0 commit comments

Comments
 (0)