Skip to content

Commit 2ae1eb7

Browse files
author
Florian Schaal
committed
allow empty remote-list - validate_remote_user.inc.php
1 parent d6ac29b commit 2ae1eb7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interface/lib/classes/validate_remote_user.inc.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class validate_remote_user {
3333
function valid_remote_ip($field_name, $field_value, $validator) {
3434
global $app;
3535

36+
if(trim($field_value) == '') return;
37+
3638
$values = explode(',', $field_value);
3739
$regex = '/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/';
3840
foreach($values as $cur_value) {

0 commit comments

Comments
 (0)