For old loans, the uuid is actually a text string, not a uuid.
authorrajbot <raj@archive.org>
Fri, 28 Jan 2011 21:26:35 +0000 (21:26 +0000)
committerrajbot <raj@archive.org>
Fri, 28 Jan 2011 21:26:35 +0000 (21:26 +0000)
BookReaderIA/www/BookReaderAuth.php

index 1a82afe..04f25f7 100644 (file)
@@ -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();
 }