about summary refs log tree commit homepage
path: root/lib/PublicInbox/Unsubscribe.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-06-15 01:36:40 +0000
committerEric Wong <e@80x24.org>2016-06-15 01:36:40 +0000
commite048c8dfb947b0e1c04febac48275ef3876ed1e6 (patch)
tree9370568a08bd43633d8c30ea5b4f66a2100881b0 /lib/PublicInbox/Unsubscribe.pm
parentd9d19e3a74b8331f39098b254a8865659948fc7a (diff)
downloadpublic-inbox-e048c8dfb947b0e1c04febac48275ef3876ed1e6.tar.gz
We'll show a nasty warning in the UI instead of triggering
a perl warning about an undefined variable.
Diffstat (limited to 'lib/PublicInbox/Unsubscribe.pm')
-rw-r--r--lib/PublicInbox/Unsubscribe.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Unsubscribe.pm b/lib/PublicInbox/Unsubscribe.pm
index 239feea9..79234aa1 100644
--- a/lib/PublicInbox/Unsubscribe.pm
+++ b/lib/PublicInbox/Unsubscribe.pm
@@ -158,7 +158,7 @@ sub archive_info {
         }
 
         # protocol-relative URL:  "//example.com/" => "https://example.com/"
-        if ($archive_url =~ m!\A//!) {
+        if ($archive_url && $archive_url =~ m!\A//!) {
                 $archive_url = "$env->{'psgi.url_scheme'}:$archive_url";
         }