aboutsummaryrefslogtreecommitdiffstats
path: root/redirect.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'redirect.cgi')
-rwxr-xr-xredirect.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/redirect.cgi b/redirect.cgi
index c471831..9af5ed9 100755
--- a/redirect.cgi
+++ b/redirect.cgi
@@ -13,7 +13,7 @@ my $q = CGI->new; # create CGI object
my $dbh = DBI->connect("dbi:Pg:dbname=purl") or die $DBI::errstr;
# set the short
-my $short = $ENV{REQUEST_URI};
+my $short = scalar $ENV{REQUEST_URI};
$short =~ s/^\///;
# SQL Query