mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-30 07:59:42 +01:00
FuncCommand: use uri_escape_utf8 instead
This commit is contained in:
parent
198a7d6c5b
commit
60cf77d538
@ -156,12 +156,12 @@ sub func_unquote {
|
|||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
use URI::Escape qw/uri_escape/;
|
use URI::Escape qw/uri_escape_utf8/;
|
||||||
|
|
||||||
sub func_uri_escape {
|
sub func_uri_escape {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my $text = "@_";
|
my $text = "@_";
|
||||||
return uri_escape($text);
|
return uri_escape_utf8($text);
|
||||||
}
|
}
|
||||||
|
|
||||||
# near-verbatim insertion of krok's `sed` factoid
|
# near-verbatim insertion of krok's `sed` factoid
|
||||||
|
Loading…
Reference in New Issue
Block a user