We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 5c963cb3 authored by Evan Prodromou's avatar Evan Prodromou

Memcached_DataObject::pkeyGet() accepts null values

parent 64174945
......@@ -78,7 +78,13 @@ class Memcached_DataObject extends Safe_DataObject
return false;
foreach ($kv as $k => $v) {
$i->$k = $v;
if (is_null($v)) {
// XXX: possible SQL injection...? Don't
// pass keys from the browser, eh.
$i->whereAdd("$k is null");
} else {
$i->$k = $v;
if ($i->find(true)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment