Allow GET or POST
authorMichael Ang <mang@archive.org>
Fri, 28 Jan 2011 02:52:38 +0000 (02:52 +0000)
committerMichael Ang <mang@archive.org>
Fri, 28 Jan 2011 02:52:38 +0000 (02:52 +0000)
BookReaderIA/www/BookReaderAuth.php

index 878a6b6..1a82afe 100644 (file)
@@ -18,10 +18,10 @@ This file is part of BookReader.
     along with BookReader.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-$id = $_POST['id'];
-$uuid = $_POST['uuid'];
-$token = $_POST['token'];
-$bookPath = $_POST['bookPath'];
+$id = $_REQUEST['id'];
+$uuid = $_REQUEST['uuid'];
+$token = $_REQUEST['token'];
+$bookPath = $_REQUEST['bookPath'];
 
 if (!preg_match('/^\d{10}-[0-9a-f]{32}$/', $token)) {
     fatal();