Author: chabotc
Date: Tue Sep 22 10:45:32 2009
New Revision: 817589

URL: http://svn.apache.org/viewvc?rev=817589&view=rev
Log:
SHINDIG-1173 by Arne Roomann-Kurrik - Warn users is 
always_populate_raw_post_data is turned off

Modified:
    incubator/shindig/trunk/php/index.php

Modified: incubator/shindig/trunk/php/index.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/php/index.php?rev=817589&r1=817588&r2=817589&view=diff
==============================================================================
--- incubator/shindig/trunk/php/index.php (original)
+++ incubator/shindig/trunk/php/index.php Tue Sep 22 10:45:32 2009
@@ -45,6 +45,11 @@
   if (get_magic_quotes_gpc()) {
     die("Your environment has magic_quotes_gpc enabled which will interfere 
with Shindig.  Please set 'magic_quotes_gpc' to 'Off' in php.ini");
   }
+
+  $populate_raw_post = strtolower(ini_get("always_populate_raw_post_data"));
+  if (!isset($populate_raw_post) || $populate_raw_post === "0" || 
$populate_raw_post === "Off") {
+    die("Your environment does not have always_populate_raw_post_data enabled 
which will interfere with Shindig.  Please set 'always_populate_raw_post_data' 
to 'On' in php.ini");
+  }
 }
 
 // All configurable classes are autoloaded (see config.php for the 
configurable classes)


Reply via email to