From dea261f0d052603eb9302f0b15e20f9156649938 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 25 Feb 2013 09:31:44 +0100 Subject: [PATCH] uri_decode: nur "undef" abfangen, nicht auch andere im Perl-Sinne "0"-Werte Fixt #2182. --- SL/MoreCommon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/MoreCommon.pm b/SL/MoreCommon.pm index 6fbf87dc4..dfc5a7d80 100644 --- a/SL/MoreCommon.pm +++ b/SL/MoreCommon.pm @@ -171,7 +171,7 @@ sub uri_encode { } sub uri_decode { - my $str = $_[0] || ''; + my $str = $_[0] // ''; $str =~ tr/+/ /; $str =~ s/\\$//; -- 2.20.1