Package: websvn
Severity: normal
Tags: patch
Hi,
I found a bug in the latest upload of websvn. In the MultiViews mode, websvn
does not strip
the .php extension from the links and makes browsing the the SVN archive(s)
impossible.
I think it is a logic error/typo in configclass.inc and have attached a patch
which
should fix the problem.
Greetings Arjan Oosting
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (102, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-2-stardust
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
diff -Naur websvn-1.61.theorig/include/configclass.inc websvn-1.61/include/configclass.inc
--- websvn-1.61.theorig/include/configclass.inc 2005-02-09 18:41:11.000000000 +0100
+++ websvn-1.61/include/configclass.inc 2005-02-09 18:45:16.000000000 +0100
@@ -340,7 +340,7 @@
if ($this->multiViews)
{
// Remove the .php
- if (substr($base, 0, -4) == ".php" ) $base = substr($base, 0, -4);
+ if (substr($base, -4) == ".php" ) $base = substr($base, 0, -4);
if ($path && $path{0} != "/") $path = "/".$path;