aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordennis <dennis@red.dnns.no>2022-07-14 06:52:26 +0200
committerdennis <dennis@red.dnns.no>2022-07-14 06:52:26 +0200
commit4dd027acd3aedf65c8cc21313612ad084289e0b9 (patch)
tree36b7b8b8b08cc47a6ef96f329d0493bf9aba98da
parentI'm adding a + in front of the short URL, because I want to use another domai... (diff)
downloadpurl-4dd027acd3aedf65c8cc21313612ad084289e0b9.tar.gz
define value even if is undefined
-rwxr-xr-xform.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/form.cgi b/form.cgi
index d9db8ba..05bfbd6 100755
--- a/form.cgi
+++ b/form.cgi
@@ -11,7 +11,7 @@ my $q = CGI->new; # create CGI object
my $results;
my $user = scalar $ENV{'REMOTE_USER'};
-my $form = scalar $q->param('form');
+my $form = scalar $q->param('form') || '';
# If form has already been submitted
if ($q->param('url')) {