Fix another regression introduced in r5071 : module url were generated with arguments values that were url-encoded twice (so this leads to some errors when using them)

SVN:trunk[5077]
This commit is contained in:
Pierre Goiffon
2017-10-24 14:02:59 +00:00
parent d7851ed090
commit 890fcac73f

View File

@@ -1086,7 +1086,7 @@ class utils
* @param string[] $aArguments
* @param string $sEnvironment
*
* @return string the URL to a page that will execute the requested module page
* @return string the URL to a page that will execute the requested module page, with query string values url encoded
*
* @see GetExecPageArguments can be used to submit using the GET method (see bug in N.1108)
* @see GetAbsoluteUrlExecPage
@@ -1105,7 +1105,7 @@ class utils
* @param string[] $aArguments
* @param string $sEnvironment
*
* @return string[] exec.php query string arguments for the specified module
* @return string[] key/value pair for the exec page query string. <b>Warning</b> : values are not url encoded !
* @throws \Exception if one of the argument has a reserved name
*/
static public function GetExecPageArguments($sModule, $sPage, $aArguments = array(), $sEnvironment = null)
@@ -1121,7 +1121,7 @@ class utils
{
throw new Exception("Module page: $sName is a reserved page argument name");
}
$aArgs[$sName] = urlencode($sValue);
$aArgs[$sName] = $sValue;
}
return $aArgs;