This patchset applies the patches at the below urls
http://websvn.tigris.org/issues/show_bug.cgi?id=29
http://websvn.tigris.org/issues/show_bug.cgi?id=31
http://websvn.tigris.org/issues/show_bug.cgi?id=33
http://websvn.tigris.org/issues/show_bug.cgi?id=37
--- include/feedcreator.class.php.orig 2004-06-24 03:14:52.000000000 -0400
+++ include/feedcreator.class.php 2005-05-06 09:57:15.000000000 -0400
@@ -122,11 +122,6 @@
* A little setup *
**************************************************************************/
-// your local timezone, set to "" to disable or for GMT
-define("TIME_ZONE","+01:00");
-
-
-
/**
* Version string.
@@ -588,10 +583,7 @@
* @return a date in RFC 822 format
*/
function rfc822() {
- //return gmdate("r",$this->unix);
- $date = gmdate("D, d M Y H:i:s", $this->unix);
- if (TIME_ZONE!="") $date .= " ".str_replace(":","",TIME_ZONE);
- return $date;
+ return gmdate("r",$this->unix);
}
/**
@@ -602,7 +594,6 @@
function iso8601() {
$date = gmdate("Y-m-d\TH:i:sO",$this->unix);
$date = substr($date,0,22) . ':' . substr($date,-2);
- if (TIME_ZONE!="") $date = str_replace("+00:00",TIME_ZONE,$date);
return $date;
}
--- include/svnlook.inc.orig 2005-01-07 11:26:06.000000000 -0500
+++ include/svnlook.inc 2005-05-09 19:42:52.000000000 -0400
@@ -188,20 +188,10 @@
// Remove the offset to get the time in GMT
$h -= $offset / 100;
- // Get the commit time as seconds. Note that the mktime function assumes that the time being
- // passed to it is a local time - it will therefore subtract/add the required number of hours
- // to make it GMT. Since we already have the time in GMT we first add the localtime offset to
- // get the commit time in local time. The offset calculated above already handles the summer
- // time case, so we tell mktime not to take this into account.
-
- $lt = gettimeofday();
- $minwest = $lt["minuteswest"];
- $committime = mktime($h ,$m - $minwest, $s, $mo, $d, $y, 0);
+ $committime = gmmktime($h ,$m, $s, $mo, $d, $y, -1);
$log["committime"] = $committime;
- // Get the current time (as GMT)
- $t = localtime(time(), 1);
- $curtime = mktime($t["tm_hour"], $t["tm_min"], $t["tm_sec"], $t["tm_mon"] + 1, $t["tm_mday"], $t["tm_year"] + 1900, $t["tm_isdst"]);
+ $curtime = time();
// Get the number of seconds since the commit
$agesecs = $curtime - $committime;
--- include/configclass.inc.orig 2005-05-26 21:25:25.000000000 -0400
+++ include/configclass.inc 2005-05-26 21:24:53.000000000 -0400
@@ -402,7 +402,7 @@
if ($rep == -1)
return $fname."?path=".urlencode($path)."&";
else
- return $fname."?repname=".$rep->name."&path=".urlencode($path)."&";
+ return $fname."?repname=".urlencode($rep->name)."&path=".urlencode($path)."&";
}
}
--- include/configclass.inc.orig 2005-08-16 10:00:42.000000000 +0100
+++ include/configclass.inc 2005-08-16 10:02:01.000000000 +0100
@@ -339,8 +339,11 @@
if ($this->multiViews)
{
- // Remove the .php
- $base = substr($base, 0, -4);
+ if ( eregi(".php$", $base) )
+ {
+ // Remove the .php
+ $base = substr($base, 0, -4);
+ }
if ($path && $path{0} != "/") $path = "/".$path;
Index: log.php
===================================================================
--- log.php (revision 328)
+++ log.php (working copy)
@@ -199,16 +199,17 @@
$parent = substr($rpath, 0, $pos + 1);
$url = $config->getURL($rep, $parent, "dir");
- $listing[$index]["compare_box"] = "";
$listing[$index]["revlink"] = "${r["rev"]}";
if ($isDir)
- {
+ {
+ $listing[$index]["compare_box"] = "";
$url = $config->getURL($rep, $rpath, "dir");
$listing[$index]["revpathlink"] = "$rpath";
}
else
- {
+ {
+ $listing[$index]["compare_box"] = "";
$url = $config->getURL($rep, $rpath, "file");
$listing[$index]["revpathlink"] = "$rpath";
}