diff options
author | Dominik Eckelmann <deckelmann@gmail.com> | 2012-03-21 11:25:00 +0100 |
---|---|---|
committer | Dominik Eckelmann <deckelmann@gmail.com> | 2012-03-21 11:25:00 +0100 |
commit | 96946cc94d3ecb3832e2a1ce35c49743e25329e1 (patch) | |
tree | 6b44d893b21c272a1c5442ddcdbe470432de19be /inc/httputils.php | |
parent | c2eb026d070a5ba9ba1ee8754c3a862a026a7ea8 (diff) | |
download | rpg-96946cc94d3ecb3832e2a1ce35c49743e25329e1.tar.gz rpg-96946cc94d3ecb3832e2a1ce35c49743e25329e1.tar.bz2 |
replaced $HTTP_RAW_POST_DATA with http_get_raw_post_data function
Diffstat (limited to 'inc/httputils.php')
-rw-r--r-- | inc/httputils.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/inc/httputils.php b/inc/httputils.php index 0ad97a9a1..b815f3ca6 100644 --- a/inc/httputils.php +++ b/inc/httputils.php @@ -249,3 +249,11 @@ function http_cached_finish($file, $content) { print $content; } } + +function http_get_raw_post_data() { + static $postData = null; + if ($postData === null) { + $postData = file_get_contents('php://input'); + } + return $postData; +} |