projects
/
bookreader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2e682b
)
For old loans, the uuid is actually a text string, not a uuid.
author
rajbot
<raj@archive.org>
Fri, 28 Jan 2011 21:26:35 +0000
(21:26 +0000)
committer
rajbot
<raj@archive.org>
Fri, 28 Jan 2011 21:26:35 +0000
(21:26 +0000)
BookReaderIA/www/BookReaderAuth.php
patch
|
blob
|
history
diff --git
a/BookReaderIA/www/BookReaderAuth.php
b/BookReaderIA/www/BookReaderAuth.php
index
1a82afe
..
04f25f7
100644
(file)
--- 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();
}