X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=perl%2FSesse%2Fpr0n%2FCommon.pm;h=95c736326dde2c45866dd6cf73d50f6d5db32e57;hb=df65583c7e3ee71e48e8ac3d822a3c1b2d2426cc;hp=1c864fc6d8a88b07ad5b599cfa54b8389ff9671d;hpb=f82413576837d2d9e2cb70a283a104dfbf4e08c2;p=pr0n diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index 1c864fc..95c7363 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -11,6 +11,7 @@ use Apache2::Const -compile => ':common'; use Apache2::Log; use ModPerl::Util; +use Carp; use DBI; use DBD::Pg; use Image::Magick; @@ -31,7 +32,7 @@ BEGIN { require Sesse::pr0n::Config_local; }; - $VERSION = "v2.10"; + $VERSION = "v2.12"; @ISA = qw(Exporter); @EXPORT = qw(&error &dberror); %EXPORT_TAGS = qw(); @@ -67,6 +68,7 @@ sub error { footer($r); $r->log->error($err); + $r->log->error("Stack trace follows: " . Carp::longmess()); ModPerl::Util::exit(); } @@ -126,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; } @@ -134,8 +136,12 @@ sub get_query_string { } sub print_link { - my ($r, $title, $baseurl, $param, $defparam) = @_; - my $str = "$title"; + my ($r, $title, $baseurl, $param, $defparam, $accesskey) = @_; + my $str = "print($str); }