Skip to content

Commit 8c0b8f4

Browse files
committed
[dispatcher] fix the socket regex
1 parent 00e6ed8 commit 8c0b8f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/common/forms.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,6 @@ function get_combo_options($combo)
505505

506506
$re_ip = "([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3})";
507507

508-
$re_socket = "^([a-zA-Z]+:)?(([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3})|([0-9A-Za-z_])+)(:[0-9]+)?$";
508+
$re_socket = "^([a-zA-Z]+:)?((([0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3})(:[0-9]+)?)|[a-zA-Z][a-zA-Z0-9_]+)$";
509509

510510
?>

0 commit comments

Comments
 (0)