A free, self-hostable news aggregator…
file_get_contents fix
Alexandre Alapetite8af80091c74b
diff --git a/p/api/greader.php b/p/api/greader.phpindex e1f4202a7..262f9d0fa 100644--- a/p/api/greader.php+++ b/p/api/greader.php@@ -23,7 +23,7 @@ Server-side API compatible with Google Reader API layer 2require('../../constants.php');require(LIB_PATH . '/lib_rss.php'); //Includes class autoloader-$ORIGINAL_INPUT = file_get_contents('php://input', false, null, -1, 1048576);+$ORIGINAL_INPUT = file_get_contents('php://input', false, null, 0, 1048576);if (PHP_INT_SIZE < 8) { //32-bitfunction dec2hex($dec) {diff --git a/p/api/pshb.php b/p/api/pshb.phpindex 4b546908a..ed8326cf5 100644--- a/p/api/pshb.php+++ b/p/api/pshb.php@@ -11,7 +11,7 @@ function logMe($text) {file_put_contents(USERS_PATH . '/_/log_pshb.txt', date('c') . "\t" . $text . "\n", FILE_APPEND);}-$ORIGINAL_INPUT = file_get_contents('php://input', false, null, -1, MAX_PAYLOAD);+$ORIGINAL_INPUT = file_get_contents('php://input', false, null, 0, MAX_PAYLOAD);//logMe(print_r(array('_SERVER' => $_SERVER, '_GET' => $_GET, '_POST' => $_POST, 'INPUT' => $ORIGINAL_INPUT), true));