md5: search for danbooru compatability
git-svn-id: file:///home/shish/svn/shimmie2/trunk@556 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
e2127e9ca9
commit
24c2311cba
@ -160,8 +160,8 @@ class Database {
|
||||
}
|
||||
$img_search->append(new Querylet("AND (images.owner_id = $user_id)"));
|
||||
}
|
||||
else if(preg_match("/hash=([0-9a-fA-F]*)/i",$term,$matches)) {
|
||||
$hash = strtolower($matches[1]);
|
||||
else if(preg_match("/(hash=|md5:)([0-9a-fA-F]*)/i",$term,$matches)) {
|
||||
$hash = strtolower($matches[2]);
|
||||
if(!is_null($hash)) {
|
||||
$img_search->append(new Querylet("AND (images.hash = '$hash')"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user