The parameter "$arg_separator" of function "add_url_params" in file include/functions_url.inc.php (line 88) should default to "&" instead "&". Also each value should be url encoded:
**Comment posted by thimo on 30 Jan 2015 15:44**
It should default to "&" instead "& amp;"
<!-- github-comment-id:124899147 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Reported by thimo on 30 Jan 2015 15:43
The parameter "$arg_separator" of function "add_url_params" in file include/functions_url.inc.php (line 88) should default to "&" instead "&". Also each value should be url encoded:
/**
*/
function add_url_params($url, $params, $arg_separator='&' )
{
if ( !empty($params) )
{
assert( is_array($params) );
$is_first = true;
foreach($params as $param=>$val)
{
if ($is_first)
{
$is_first = false;
$url .= ( strpos($url, '?')===false ) ? '?' : $arg_separator;
}
else
{
$url .= $arg_separator;
}
$url .= $param;
if (isset($val))
{
$url .= '='.urlencode($val);
}
}
}
return $url;
}
Piwigo Bugtracker #3193
Comment posted by thimo on 30 Jan 2015 15:44
It should default to "&" instead "& amp;"