Skip to content

Commit b00e475

Browse files
committed
- adjusted PHP settings regex to allow |, (, and ) (like in "error_reporting = E_ALL & ~(E_NOTICE | E_DEPRECATED | E_STRICT)")
1 parent 2150f0d commit b00e475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interface/web/sites/web_domain_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ function onSubmit() {
749749
// value inside ''
750750
if(preg_match('@^\s*;*\s*[a-zA-Z0-9._]*\s*=\s*\'.*\'\s*;*\s*$@', $custom_php_ini_settings_line)) continue;
751751
// everything else
752-
if(preg_match('@^\s*;*\s*[a-zA-Z0-9._]*\s*=\s*[-a-zA-Z0-9~&=_\@/,.#\s]*\s*;*\s*$@', $custom_php_ini_settings_line)) continue;
752+
if(preg_match('@^\s*;*\s*[a-zA-Z0-9._]*\s*=\s*[-a-zA-Z0-9~&=_\@/,.#\s|()]*\s*;*\s*$@', $custom_php_ini_settings_line)) continue;
753753
$custom_php_ini_settings_are_valid = false;
754754
break;
755755
}

0 commit comments

Comments
 (0)