From 7f03254da0214661a7505d9a20f08e8710ab7853 Mon Sep 17 00:00:00 2001 From: Avery Stephen Date: Sun, 16 Mar 2014 22:42:29 +0800 Subject: [PATCH] Bad parameter name generated when not unique. Your concatenation makes the additional prefix passed produce invalid queries. From PHP Doc: string uniqid ([ string $prefix = "" [, bool $more_entropy = false ]] ) Desired: myParam5325b6e8ab205 Got: myParammyParam5325b6e8ab205 --- core/components/rowboat/model/rowboat/rbquery.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/components/rowboat/model/rowboat/rbquery.class.php b/core/components/rowboat/model/rowboat/rbquery.class.php index 2a86879..c914acf 100644 --- a/core/components/rowboat/model/rowboat/rbquery.class.php +++ b/core/components/rowboat/model/rowboat/rbquery.class.php @@ -140,7 +140,7 @@ public function addParam($k,$v) { $kz = explode('.',$k); $k = !empty($kz[1]) ? $kz[1] : $kz[0]; if (array_key_exists($k,$this->_params)) { - $k = $k.uniqid($k); + $k = $k.uniqid(); } $this->_params[$k] = $v;