From 463d695c4f7ba87ba99f0ffc548ad6f994ff49d0 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 18 Nov 2014 19:48:44 +0100 Subject: Added proxy server settings --- inc/util.inc.php | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'inc/util.inc.php') diff --git a/inc/util.inc.php b/inc/util.inc.php index 109c0c5d..6e97e0bd 100644 --- a/inc/util.inc.php +++ b/inc/util.inc.php @@ -30,7 +30,7 @@ class Util public static function redirect($location = false) { if ($location === false) { - $location = preg_replace('/(&|\?)message\[\]\=[^&]*(&|$)/', '\1', $_SERVER['REQUEST_URI']); + $location = preg_replace('/(&|\?)message\[\]\=[^&]*/', '\1', $_SERVER['REQUEST_URI']); } Session::save(); $messages = Message::toRequest(); @@ -187,22 +187,5 @@ class Util return true; } - - /** - * Return contents of given file as string, but only read up to maxBytes bytes. - * - * @param string $file file to read - * @param int $maxBytes maximum length to read - * @return boolean success or failure - */ - public static function readFile($file, $maxBytes = 1000) - { - $fh = @fopen($file, 'rb'); - if ($fh === false) - return false; - $data = fread($fh, $maxBytes); - fclose($fh); - return $data; - } } -- cgit v1.2.3-55-g7522