GIT.Harvie.CZ
/
mirrors
/
SokoMan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Escapovani v Query knihovne
[mirrors/SokoMan.git]
/
lib
/
Query.class.php
diff --git
a/lib/Query.class.php
b/lib/Query.class.php
index 48a2bb0e805f5ad6910ce90607e0f0c98b72dc2e..12e423a28a6ef2455e73324ca85d3779b5f40983 100755
(executable)
--- a/
lib/Query.class.php
+++ b/
lib/Query.class.php
@@
-28,10
+28,11
@@
class Query {
static function build($query=array(),$prefix=false) {
$q='';
if(is_array($query)) foreach($query as $key => $val) {
static function build($query=array(),$prefix=false) {
$q='';
if(is_array($query)) foreach($query as $key => $val) {
+ $key=urlencode($key);
$pre = !$prefix ? $key : $prefix.'['.$key.']';
$q.=Query::build($val,$pre);
} else {
$pre = !$prefix ? $key : $prefix.'['.$key.']';
$q.=Query::build($val,$pre);
} else {
- return $prefix.'='.
$query
.'&';
+ return $prefix.'='.
urlencode($query)
.'&';
}
return $q;
}
}
return $q;
}
This page took
0.103922 seconds
and
4
git commands to generate.