www-commits
[Top][All Lists]
Advanced

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

www/software/goodbye index.php


From: Matt Lee
Subject: www/software/goodbye index.php
Date: Wed, 30 Dec 2009 18:24:07 +0000

CVSROOT:        /web/www
Module name:    www
Changes by:     Matt Lee <mattl>        09/12/30 18:24:07

Modified files:
        software/goodbye: index.php 

Log message:
        updated, because we PHP 4 apparently.

CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/software/goodbye/index.php?cvsroot=www&r1=1.14&r2=1.15

Patches:
Index: index.php
===================================================================
RCS file: /web/www/www/software/goodbye/index.php,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- index.php   30 Dec 2009 18:21:42 -0000      1.14
+++ index.php   30 Dec 2009 18:24:03 -0000      1.15
@@ -19,8 +19,10 @@
   $h=$_POST['hash'];
 
   $f = fopen('http://fencepost.gnu.org/' . $u . ':' . $a . ':' . $h,'r');
-  $contents = stream_get_contents($f);
-
+  $contents = '';
+    while (!feof($f)) {
+    $contents .= fread($f, 8192);
+  }
   echo $contents;
 
  } else {




reply via email to

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