Prechádzať zdrojové kódy

API limit INPUT to 1MB

Alexandre Alapetite 10 rokov pred
rodič
commit
7db99b8382
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      p/api/greader.php

+ 1 - 1
p/api/greader.php

@@ -23,7 +23,7 @@ Server-side API compatible with Google Reader API layer 2
 require('../../constants.php');
 require('../../constants.php');
 require(LIB_PATH . '/lib_rss.php');	//Includes class autoloader
 require(LIB_PATH . '/lib_rss.php');	//Includes class autoloader
 
 
-$ORIGINAL_INPUT = file_get_contents('php://input');
+$ORIGINAL_INPUT = file_get_contents('php://input', false, null, -1, 1048576);
 
 
 if (PHP_INT_SIZE < 8) {	//32-bit
 if (PHP_INT_SIZE < 8) {	//32-bit
 	function dec2hex($dec) {
 	function dec2hex($dec) {