From b499b81784e502e480dd114bb1fc130f498ab224 Mon Sep 17 00:00:00 2001
From: "Steinar H. Gunderson"
Date: Mon, 25 Dec 2006 21:41:04 +0100
Subject: [PATCH 01/16] No need to dberror out when we are using RaiseError.
---
perl/Sesse/pr0n/WebDAV.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/perl/Sesse/pr0n/WebDAV.pm b/perl/Sesse/pr0n/WebDAV.pm
index cfaa0ec..aecd9fd 100644
--- a/perl/Sesse/pr0n/WebDAV.pm
+++ b/perl/Sesse/pr0n/WebDAV.pm
@@ -500,7 +500,7 @@ EOF
if ($@) {
# Some error occurred, rollback and bomb out
$dbh->rollback;
- dberror($r, "Transaction aborted because $@");
+ error($r, "Transaction aborted because $@");
unlink($fname);
}
}
--
2.39.2
From af53beceb86781f1caa593218e72a4cc0dcc2262 Mon Sep 17 00:00:00 2001
From: "Steinar H. Gunderson"
Date: Mon, 25 Dec 2006 22:11:05 +0100
Subject: [PATCH 02/16] Last round of typos, I hope.
---
perl/Sesse/pr0n/Rotate.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/perl/Sesse/pr0n/Rotate.pm b/perl/Sesse/pr0n/Rotate.pm
index e6d4614..59103e7 100644
--- a/perl/Sesse/pr0n/Rotate.pm
+++ b/perl/Sesse/pr0n/Rotate.pm
@@ -37,7 +37,7 @@ sub handler {
if ($rotval == 90 || $rotval == 270) {
my $q = $dbh->do('UPDATE images SET height=width,width=height WHERE id=?', undef, $id)
or dberror($r, "Size clear of $id failed");
- $dbh->do('UPDATE events SET last_update=CURRENT_TIMESTAMP WHERE event=( SELECT event FROM images WHERE id=? )',
+ $dbh->do('UPDATE events SET last_update=CURRENT_TIMESTAMP WHERE id=( SELECT event FROM images WHERE id=? )',
undef, $id)
or dberror($r, "Cache invalidation at $id failed");
}
@@ -46,7 +46,7 @@ sub handler {
{
eval {
- $dbh->do('UPDATE events SET last_update=CURRENT_TIMESTAMP WHERE event=( SELECT event FROM images WHERE id=? )',
+ $dbh->do('UPDATE events SET last_update=CURRENT_TIMESTAMP WHERE id=( SELECT event FROM images WHERE id=? )',
undef, $id);
$dbh->do('INSERT INTO deleted_images SELECT * FROM images WHERE id=?',
undef, $id);
--
2.39.2
From 408224e33918eb1837057c790798c9b3083b3e6a Mon Sep 17 00:00:00 2001
From: "Steinar H. Gunderson"
Date: Mon, 25 Dec 2006 23:26:32 +0100
Subject: [PATCH 03/16] Use semicolon instead of ampersand to separate
arguments.
---
perl/Sesse/pr0n/Common.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm
index 4ddc0da..3ab1c6b 100644
--- a/perl/Sesse/pr0n/Common.pm
+++ b/perl/Sesse/pr0n/Common.pm
@@ -128,7 +128,7 @@ sub get_query_string {
next unless defined($value);
next if (defined($defparam->{$key}) && $value == $defparam->{$key});
- $str .= ($first) ? "?" : '&';
+ $str .= ($first) ? "?" : ';';
$str .= "$key=$value";
$first = 0;
}
--
2.39.2
From f88b9aecc1e5bbad92bbac45ce3d159bfad65035 Mon Sep 17 00:00:00 2001
From: "Steinar H. Gunderson"
Date: Mon, 25 Dec 2006 23:27:04 +0100
Subject: [PATCH 04/16] Bump version number again.
---
perl/Sesse/pr0n/Common.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm
index 3ab1c6b..95c7363 100644
--- a/perl/Sesse/pr0n/Common.pm
+++ b/perl/Sesse/pr0n/Common.pm
@@ -32,7 +32,7 @@ BEGIN {
require Sesse::pr0n::Config_local;
};
- $VERSION = "v2.11";
+ $VERSION = "v2.12";
@ISA = qw(Exporter);
@EXPORT = qw(&error &dberror);
%EXPORT_TAGS = qw();
--
2.39.2
From 9c7c9c9f57b9f5a04c66aec40f5e3f6368d70434 Mon Sep 17 00:00:00 2001
From: "Steinar H. Gunderson"
Date: Tue, 26 Dec 2006 16:56:57 +0100
Subject: [PATCH 05/16] Update the version number in the FAQ.
---
files/faq.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/files/faq.html b/files/faq.html
index 39c03a4..0e62ebe 100644
--- a/files/faq.html
+++ b/files/faq.html
@@ -138,7 +138,7 @@
on IRC as Sesse on EFnet, IRCnet, Freenode or OFTC.
-