aboutsummaryrefslogtreecommitdiff
path: root/lib/Minz/Url.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Minz/Url.php')
-rw-r--r--lib/Minz/Url.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Minz/Url.php b/lib/Minz/Url.php
index 70414f17a..f6fa809cf 100644
--- a/lib/Minz/Url.php
+++ b/lib/Minz/Url.php
@@ -92,7 +92,10 @@ class Minz_Url {
unset($url['params']['c']);
unset($url['params']['a']);
foreach ($url['params'] as $key => $param) {
- $uri .= $separator . urlencode($key) . '=' . urlencode($param);
+ if (!is_string($key) || (!is_string($param) && !is_int($param))) {
+ continue;
+ }
+ $uri .= $separator . urlencode($key) . '=' . urlencode((string)$param);
$separator = $and;
}
}