Allow base URL with path
Ignore and remove trailing slashes. Fixes #134. Change-Id: Iedf266e9a93e6939f7f66707fee59a2b56226216
This commit is contained in:
@@ -111,7 +111,9 @@ const LoginPage = ({ theme }) => {
|
||||
if (!values.base_url.match(/^(http|https):\/\//)) {
|
||||
errors.base_url = translate("synapseadmin.auth.protocol_error");
|
||||
} else if (
|
||||
!values.base_url.match(/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?$/)
|
||||
!values.base_url.match(
|
||||
/^(http|https):\/\/[a-zA-Z0-9\-.]+(:\d{1,5})?[^?&\s]*$/
|
||||
)
|
||||
) {
|
||||
errors.base_url = translate("synapseadmin.auth.url_error");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user