Package: websvn
Severity: normal
Tags: patch

Hi,

I've found this bug in websvn while browsing through it:
Notice: Undefined offset: 1 in /usr/share/websvn/listing.php on line 295

Notice: Undefined offset: 1 in /usr/share/websvn/listing.php on line 295

Here is patch that fixes the issue:
--- listing.php.orig    2005-03-07 21:19:10.000000000 +0100
+++ listing.php 2005-03-07 21:17:04.000000000 +0100
@@ -292,10 +292,10 @@

 createDirLinks($rep, $ppath, $passrev, $showchanged);
 $vars["curdirloglink"] = "<a 
href=\"${logurl}rev=$passrev&amp;sc=$showchanged&amp;isdir=1\">${lang["VIEWLOG"]}</a>";
-$vars["curdircomplink"] = "<a 
href=\"${compurl}compare%5B%5D=".urlencode($history[1]["path"])."@".$history[1]["rev"]."&amp;compare%5B%5D=".urlencode($history[0]["path"])."@".$history[0]["rev"]."\">${lang["DIFFPREV"]}</a>";
-if (isset($history[1]))
+if (isset($history[1])) {
+  $vars["curdircomplink"] = "<a 
href=\"${compurl}compare%5B%5D=".urlencode($history[1]["path"])."@".$history[1]["rev"]."&amp;compare%5B%5D=".urlencode($history[0]["path"])."@".$history[0]["rev"]."\">${lang["DIFFPREV"]}</a>";
        $vars["curdircomplink"] = "<a 
href=\"${compurl}compare%5B%5D=".urlencode($history[1]["path"])."@".$history[1]["rev"]."&amp;compare%5B%5D=".urlencode($history[0]["path"])."@".$history[0]["rev"]."\">${lang["DIFFPREV"]}</a>";
-else
+} else
        $vars["curdircomplink"] = "";

 if ($rep->getHideRss())

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to