Permalink
Browse files

Updates

  • Loading branch information...
1 parent 7eb0941 commit 6d6fa7075fa1aecf8b412961602f9e942e50b41f Deepwinter committed Jul 13, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −0 addToApacheConf.txt
  2. +0 −1 restlog.php
View
@@ -0,0 +1,4 @@
+<Location "/backend/XXX.php">
+ SetEnvIf Content-Type ^(multipart/form-data)(.*) NEW_CONTENT_TYPE=multipart/form-data-alternate$2 OLD_CONTENT_TYPE=$1$2
+ RequestHeader set Content-Type %{NEW_CONTENT_TYPE}e env=NEW_CONTENT_TYPE
+</Location>
View
@@ -3,7 +3,6 @@
$fh = fopen($myFile, 'a') or die("can't open file");
fwrite($fh, "\n\n---------------------------------------------------------------\n");
foreach($_SERVER as $h=>$v)
- if(ereg('HTTP_(.+)',$h,$hp))
fwrite($fh, "$h = $v\n");
fwrite($fh, "\r\n");
fwrite($fh, file_get_contents('php://input'));

0 comments on commit 6d6fa70

Please sign in to comment.