Skip to content

Commit f0cb817

Browse files
committed
[dispatcher] fix the socket regex
1 parent ae04904 commit f0cb817

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
@@ -579,6 +579,6 @@ function form_generate_hidden($id,$val) {
579579

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

582-
$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]+)?$";
582+
$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_]+)$";
583583

584584
?>

0 commit comments

Comments
 (0)