From 6a04623eac11e40a2a846e7a0aeb5c323644950e Mon Sep 17 00:00:00 2001 From: 8chan Date: Thu, 28 May 2015 21:21:49 -0700 Subject: [PATCH] allow caps in captcha --- 8chan-captcha/entrypoint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/8chan-captcha/entrypoint.php b/8chan-captcha/entrypoint.php index 213ddb6fd..268499397 100644 --- a/8chan-captcha/entrypoint.php +++ b/8chan-captcha/entrypoint.php @@ -54,7 +54,7 @@ $query = prepare("DELETE FROM `captchas` WHERE `cookie` = ? AND `extra` = ?"); $query->execute([$_GET['cookie'], $_GET['extra']]); - if ($ary[0]['text'] !== $_GET['text']) { + if (strtolower($ary[0]['text']) !== strtolower($_GET['text'])) { echo "0"; } else {