summaryrefslogtreecommitdiffstats
path: root/class/TableIterator.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-09-13 09:39:22 +0200
committerRemi Collet <fedora@famillecollet.com>2016-09-13 09:39:22 +0200
commit7ce4084457ac30a8a7aa608c18626cc5746e2157 (patch)
tree8774de5787ee2c1741fc551c8234dae8e6c827b9 /class/TableIterator.php
parentc212027cd89a46ee04d2f14ba0cda15673c010e5 (diff)
missing escape
Diffstat (limited to 'class/TableIterator.php')
-rw-r--r--class/TableIterator.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/class/TableIterator.php b/class/TableIterator.php
index 4a4c1b6..ee92ee9 100644
--- a/class/TableIterator.php
+++ b/class/TableIterator.php
@@ -219,10 +219,10 @@ class TableIterator implements Iterator
} else if (strpos($value,'%')===false){
// String
- $ret .= "$name='$value'";
+ $ret .= "$name=" . $this->_conn->quote($value);
} else {
// String with pattern
- $ret .= "$name LIKE '$value'";
+ $ret .= "$name LIKE " . $this->_conn->quote($value);
}
}
return $ret;