Make sure that the root URL ends with a slash

SVN:trunk[1380]
This commit is contained in:
Denis Flaven
2011-07-28 13:45:51 +00:00
parent c8a1380bef
commit c7e27a836a

View File

@@ -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;