mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 04:19:27 +01:00
encode_entities for factoid URLs in HTML export
This commit is contained in:
parent
3c9c5065a3
commit
96db60d0fa
@ -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";
|
||||
|
@ -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",
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user