summaryrefslogtreecommitdiff
path: root/inc/filters.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-09-23 14:00:04 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-09-23 14:00:04 +1000
commit299b0e3f2f0bae47c2739071c7e604f5d97a5065 (patch)
tree75acdf2beff436a5d8bddf2374d367d51584eace /inc/filters.php
parent9cf6814776a989cca12cf1249460268b50ae25b2 (diff)
filehash filter condition
Diffstat (limited to 'inc/filters.php')
-rw-r--r--inc/filters.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/filters.php b/inc/filters.php
index f06154ba..f694d2b1 100644
--- a/inc/filters.php
+++ b/inc/filters.php
@@ -91,6 +91,8 @@ class Filter {
return preg_match($match, $post['subject']);
case 'body':
return preg_match($match, $post['body_nomarkup']);
+ case 'filehash':
+ return $match === $post['filehash'];
case 'filename':
if (!$post['has_file'])
return false;