gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r14571 - gauger


From: gnunet
Subject: [GNUnet-SVN] r14571 - gauger
Date: Thu, 3 Mar 2011 02:21:07 +0100

Author: bartpolot
Date: 2011-03-03 02:21:07 +0100 (Thu, 03 Mar 2011)
New Revision: 14571

Modified:
   gauger/plot.php
Log:
Fixed bug with getting source of plots with special chars in name


Modified: gauger/plot.php
===================================================================
--- gauger/plot.php     2011-03-02 23:21:07 UTC (rev 14570)
+++ gauger/plot.php     2011-03-03 01:21:07 UTC (rev 14571)
@@ -31,7 +31,7 @@
         $path = preg_replace('/[^"]+"([^"]+).*/', '\1', $file);
         $pathr = str_replace('/', '\/', $path);
         $plotcmd = preg_replace('/'.$pathr.'/', "-", $plotcmd);
-        $files[$i] = file_get_contents($path);
+        $files[$i] = file_get_contents(stripslashes($path));
     }
     header('Content-Type: text/plain');
     header('Content-Disposition: attachment; filename=source.gp');




reply via email to

[Prev in Thread] Current Thread [Next in Thread]