diff options
author | dennis <dennis@red.dnns.no> | 2022-07-14 06:52:26 +0200 |
---|---|---|
committer | dennis <dennis@red.dnns.no> | 2022-07-14 06:52:26 +0200 |
commit | 4dd027acd3aedf65c8cc21313612ad084289e0b9 (patch) | |
tree | 36b7b8b8b08cc47a6ef96f329d0493bf9aba98da | |
parent | I'm adding a + in front of the short URL, because I want to use another domai... (diff) | |
download | purl-4dd027acd3aedf65c8cc21313612ad084289e0b9.tar.gz |
define value even if is undefined
-rwxr-xr-x | form.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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')) { |