N°5651 Fix JS method GetAbsoluteUrlModulePage() not reporting parameters values

This JS method is legacy and never used with parameters, so we are choosing to fix it only in the develop branch.
This commit is contained in:
Pierre Goiffon
2022-10-21 15:27:10 +02:00
parent 6e8949a880
commit fac689ecf7

View File

@@ -90,7 +90,7 @@ class NiceWebPage extends WebPage
$sAppContext = addslashes($this->GetApplicationContext());
$this->add_script(
<<<EOF
<<<JS
function GetAbsoluteUrlAppRoot()
{
return '$sAbsURLAppRoot';
@@ -111,7 +111,7 @@ function GetAbsoluteUrlModulePage(sModule, sPage, aArguments)
{
if (aArguments.hasOwnProperty(sArgName))
{
sUrl = sUrl + '&'+sArgName+'='+aArguments[sArgname];
sUrl = sUrl + '&'+sArgName+'='+aArguments[sArgName];
}
}
return sUrl;
@@ -130,7 +130,7 @@ function AddAppContext(sURL)
}
return sURL;
}
EOF
JS
);
}