From 4d99f1655cc4a082f6d220fe9133afe387efd21c Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 19 Nov 2017 14:37:02 -0800 Subject: [PATCH] Fix unencoded entity in factoids HTML export --- PBot/Factoids.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/PBot/Factoids.pm b/PBot/Factoids.pm index 4a66c839..0d183c50 100644 --- a/PBot/Factoids.pm +++ b/PBot/Factoids.pm @@ -170,14 +170,14 @@ sub export_factoids { next if not scalar keys %{ $self->{factoids}->hash->{$channel} }; my $chan = $channel eq '.*' ? 'global' : $channel; - print FILE "" . encode_entities($chan) . "
\n"; + print FILE "" . encode_entities($chan) . "
\n"; } foreach my $channel (sort keys %{ $self->{factoids}->hash }) { next if not scalar keys %{ $self->{factoids}->hash->{$channel} }; my $chan = $channel eq '.*' ? 'global' : $channel; - print FILE "\n"; - print FILE "
\n

$chan

\n
\n"; + print FILE "\n"; + print FILE "
\n

" . encode_entities($chan) . "

\n
\n"; print FILE "\n"; print FILE "\n\n"; print FILE "\n"; @@ -508,6 +508,7 @@ sub expand_action_arguments { $jsonargs =~ s/"}$//; if (not defined $input or $input eq '') { + $input = ""; $action =~ s/\$args:json/$jsonargs/ge; $action =~ s/\$args(?![[\w])/$nick/g; } else {
owner