mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
Make sure that the root URL ends with a slash
SVN:trunk[1380]
This commit is contained in:
@@ -113,11 +113,22 @@ function DoSubmit(sMsg, iStep)
|
||||
else
|
||||
{
|
||||
var bMatch = appPath.match(/^http(?:s)?\:\/\//);
|
||||
if (!bMatch)
|
||||
{
|
||||
alert('"'+appPath+'" does not look like a valid URL for the application...\nPlease check your input.');
|
||||
bResult = false;
|
||||
}
|
||||
if (!bMatch)
|
||||
{
|
||||
alert('"'+appPath+'" does not look like a valid URL for the application...\nPlease check your input.');
|
||||
bResult = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Make sure that the root URL ends with a slash
|
||||
var bMatch = appPath.match(/\/$/);
|
||||
if (!bMatch)
|
||||
{
|
||||
// If not, add a slash at the end
|
||||
appPath += '/';
|
||||
$('#application_path').val(appPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user