diff --git a/core/database.class.php b/core/database.class.php index 54fa73d9..315b4489 100644 --- a/core/database.class.php +++ b/core/database.class.php @@ -132,6 +132,12 @@ class Database { } $img_search->append(new Querylet("AND (owner_id = $user_id)")); } + else if(preg_match("/hash=([0-9a-fA-F]*)/i",$term,$matches)) { + $hash = strtolower($matches[1]); + if(!is_null($hash)) { + $img_search->append(new Querylet("AND (hash = '$hash')")); + } + } else { $term = str_replace("*", "%", $term); $term = str_replace("?", "_", $term);