fix - post titles containing periods result in urls containing periods
This commit is contained in:
parent
c208b956a3
commit
1330a1c408
2 changed files with 21 additions and 0 deletions
|
|
@ -255,6 +255,26 @@ sub exportAssetData {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 fixUrl ( url )
|
||||
|
||||
Extends superclass method to remove periods from post urls
|
||||
|
||||
=head3 url
|
||||
|
||||
The url of the post
|
||||
|
||||
=cut
|
||||
|
||||
sub fixUrl {
|
||||
my $self = shift;
|
||||
my $url = shift;
|
||||
$url =~ s/\./_/g;
|
||||
|
||||
$self->SUPER::fixUrl($url);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 formatContent ( [ content, contentType ])
|
||||
|
||||
Formats post content for display.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue