3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-22 20:09:43 +01:00

encode_entities for factoid URLs in HTML export

This commit is contained in:
Pragmatic Software 2010-07-01 05:54:04 +00:00
parent 3c9c5065a3
commit 96db60d0fa
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ sub export_factoids {
}
my $action = $self->factoids->hash->{$channel}->{$trigger}->{action};
$action =~ s/(.*?)http(s?:\/\/[^ ]+)/encode_entities($1) . "<a href='http$2'>http$2<\/a>"/ge;
$action =~ s/(.*?)http(s?:\/\/[^ ]+)/encode_entities($1) . "<a href='http" . encode_entities($2) . "'>http" . encode_entities($2) . "<\/a>"/ge;
$action =~ s/(.*)<\/a>(.*$)/"$1<\/a>" . encode_entities($2)/e;
print FILE "<td width=100%><b>$trigger</b> is " . $action . "</td>\n";

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 227,
BUILD_REVISION => 228,
BUILD_DATE => "2010-06-30",
};