summaryrefslogtreecommitdiffstats
path: root/class
diff options
context:
space:
mode:
Diffstat (limited to 'class')
-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;