[Mapbender-commits] r7254 - trunk/mapbender/core
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sun Dec 12 04:51:49 EST 2010
Author: apour
Date: 2010-12-12 01:51:49 -0800 (Sun, 12 Dec 2010)
New Revision: 7254
Modified:
trunk/mapbender/core/system.php
Log:
changed the output
Modified: trunk/mapbender/core/system.php
===================================================================
--- trunk/mapbender/core/system.php 2010-12-12 09:49:57 UTC (rev 7253)
+++ trunk/mapbender/core/system.php 2010-12-12 09:51:49 UTC (rev 7254)
@@ -113,7 +113,14 @@
function security_patch_log($file,$line) {
$h = fopen(dirname(__FILE__)."/../log/security_patch.log","a+");
if($h) {
- fwrite($h,date("Y.m.d H:i")." FILE : ".$file." | LINE : ".$line." | POST : ".implode(",",array_keys($_POST))." | GET : ".implode(",",array_keys($_GET))." | FILE : ".implode(",",array_keys($_FILE))." |\n");
+ $post_out = '
+ --------------------------------------------------------
+ $postvars = explode(",", "'.implode(",",array_keys($_POST)).'");
+ foreach ($postvars as $value) {
+ $$value = $_POST[$value];
+ }
+ --------------------------------------------------------';
+ fwrite($h,date("Y.m.d H:i")." FILE : ".$file." | LINE : ".$line." | POST : ".implode(",",array_keys($_POST))." | GET : ".implode(",",array_keys($_GET))." | FILE : ".implode(",",array_keys($_FILE))." |\n".$post_out);
fclose($h);
}
}
More information about the Mapbender_commits
mailing list