From 3bf92e488680b154577d76ce35810758b56c9f25 Mon Sep 17 00:00:00 2001 From: Martin Monperrus Date: Thu, 16 Jun 2011 17:20:38 +0200 Subject: [PATCH] fixed bug in the creation of RSS links for author=xxx queries --- bibtexbrowser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index d260c4e..6c2ebec 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -473,7 +473,6 @@ if (!$handle) die ('cannot open '.$bibfilename); // if you encounter this error "Allowed memory size of xxxxx bytes exhausted" // then decrease the size of the temp buffer below $bufsize=BUFFERSIZE; - while (!feof($handle)) { $sread=fread($handle,$bufsize); //foreach(str_split($sread) as $s) { @@ -1421,6 +1420,7 @@ function createQueryString($array_param) { // then a simple transformation and implode foreach ($array_param as $key => $val) { + if($key == '_author') { $key = 'author'; } $array_param[$key]=$key .'='. urlencode($val); } return implode("&",$array_param);