diff options
-rw-r--r-- | lib/URI/Escape.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/URI/Escape.pm b/lib/URI/Escape.pm index 30f2b31..f9392d4 100644 --- a/lib/URI/Escape.pm +++ b/lib/URI/Escape.pm @@ -181,6 +181,7 @@ sub _fail_hi { sub uri_escape_utf8 { my $text = shift; + return undef unless defined $text; utf8::encode($text); return uri_escape($text, @_); } |