diff options
Diffstat (limited to 'redirect.cgi')
-rwxr-xr-x | redirect.cgi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/redirect.cgi b/redirect.cgi index 9af5ed9..e95b74b 100755 --- a/redirect.cgi +++ b/redirect.cgi @@ -15,6 +15,7 @@ my $dbh = DBI->connect("dbi:Pg:dbname=purl") or die $DBI::errstr; # set the short my $short = scalar $ENV{REQUEST_URI}; $short =~ s/^\///; +$short =~ s/^\+//; # If short starts with +, remove it. # SQL Query my $query = qq(SELECT shorts.url FROM shorts WHERE shorts.short = ?;); |