Skip to content
Snippets Groups Projects
Commit 9e89cd62 authored by Mads Freek Petersen's avatar Mads Freek Petersen
Browse files

Added support for "PHP[]" encoding of arrays as parameters to redirect.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1770 44740490-163a-0410-bde0-09ae8108e29a
parent e28ee949
No related branches found
No related tags found
No related merge requests found
......@@ -690,6 +690,11 @@ class SimpleSAML_Utilities {
/* Encode the parameter. */
if($value === NULL) {
$param = urlencode($name);
} elseif (is_array($value)) {
$param = "";
foreach ($value as $val) {
$param .= urlencode($name) . "[]=" . urlencode($val) . '&';
}
} else {
$param = urlencode($name) . '=' .
urlencode($value);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment