[Mapbender-commits] r7088 - trunk/mapbender/http

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Nov 4 06:43:52 EDT 2010


Author: apour
Date: 2010-11-04 03:43:52 -0700 (Thu, 04 Nov 2010)
New Revision: 7088

Modified:
   trunk/mapbender/http/index.php
Log:
Changed security_patch_log function.

Modified: trunk/mapbender/http/index.php
===================================================================
--- trunk/mapbender/http/index.php	2010-11-03 15:30:26 UTC (rev 7087)
+++ trunk/mapbender/http/index.php	2010-11-04 10:43:52 UTC (rev 7088)
@@ -19,10 +19,8 @@
  * @security_patch Helper
  */
 function security_patch_log($file,$line) {
-    $LOGFILE = "../log/security_patch.log";
-    
-    if(file_exists($LOGFILE) AND is_writeable($LOGFILE)) {
-	$h = fopen($LOGFILE,"a+");
+    $h = fopen("../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))." |\n");
 	fclose($h);
     }



More information about the Mapbender_commits mailing list