3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-29 23:39:24 +01:00

FuncCommand: use uri_escape_utf8 instead

This commit is contained in:
Pragmatic Software 2019-08-25 14:45:21 -07:00
parent 198a7d6c5b
commit 60cf77d538

View File

@ -156,12 +156,12 @@ sub func_unquote {
return $text;
}
use URI::Escape qw/uri_escape/;
use URI::Escape qw/uri_escape_utf8/;
sub func_uri_escape {
my $self = shift;
my $text = "@_";
return uri_escape($text);
return uri_escape_utf8($text);
}
# near-verbatim insertion of krok's `sed` factoid