From d444b1a4d2873e4ff049f3e6d4f65c3276ce132b Mon Sep 17 00:00:00 2001 From: rajbot Date: Fri, 28 Jan 2011 21:26:35 +0000 Subject: [PATCH] For old loans, the uuid is actually a text string, not a uuid. --- BookReaderIA/www/BookReaderAuth.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BookReaderIA/www/BookReaderAuth.php b/BookReaderIA/www/BookReaderAuth.php index 1a82afe..04f25f7 100644 --- a/BookReaderIA/www/BookReaderAuth.php +++ b/BookReaderIA/www/BookReaderAuth.php @@ -27,7 +27,8 @@ if (!preg_match('/^\d{10}-[0-9a-f]{32}$/', $token)) { fatal(); } -if (!preg_match('/^[0-9a-f]{32}$/', $uuid)) { +//if (!preg_match('/^[0-9a-f]{32}$/', $uuid)) { +if (!preg_match('/^\S{1,128}$/', $uuid)) { fatal(); } -- 2.20.1