summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2015-12-05 20:45:21 +0000
committerLuke Bratch <luke@bratch.co.uk>2015-12-05 20:45:21 +0000
commit33431d562ef7cc43834c65a66ba9365370c9a968 (patch)
tree7b9c84c0b26562a7cbb8c896f2b82b4d206bc0ea
parent34fa6530c7fa5ac2d319ad530605ad6b03828fbb (diff)
Use a case insensitive search
-rw-r--r--search.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/search.php b/search.php
index 84238c4..c2845f7 100644
--- a/search.php
+++ b/search.php
@@ -64,7 +64,7 @@ try {
foreach ($output as $upload) {
$match = false;
foreach ($args as $arg) {
- if (!is_null($arg) && strpos($upload->filename, $arg) === false) {
+ if (!is_null($arg) && stripos($upload->filename, $arg) === false) {
$match = false;
break;
}