Added message in installation page when base url contains a trailing slash.

This commit is contained in:
alext 2018-01-23 09:51:56 +01:00
parent 7aae2f359b
commit 3e58a98765
1 changed files with 9 additions and 0 deletions

View File

@ -162,4 +162,13 @@ $(document).ready(function() {
return company; return company;
} }
// Validate the base URL setting (must not contain any trailing slash).
if (GlobalVariables.baseUrl.slice(-1) === '/') {
GeneralFunctions.displayMessageBox('Misconfiguration Detected', 'Please remove any trailing slashes from your '
+ 'BASE_URL setting of the root config.php file and try again.' );
$('#install')
.prop('disabled', true)
.fadeTo('0.4');
}
}); });