]> mj.ucw.cz Git - gallery.git/commitdiff
Title and SubTitle are now consistently interpreted as HTML
authorMartin Mares <mj@ucw.cz>
Sun, 5 Jun 2016 10:26:41 +0000 (12:26 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 5 Jun 2016 10:26:41 +0000 (12:26 +0200)
lib/UCW/Gallery.pm
lib/UCW/Gallery/Web.pm

index ef0fc103e67bdea452a3879966e89a54e4430f03..d76424c88bafcd4f135d59e525a2d5e8488196b8 100644 (file)
@@ -33,7 +33,7 @@ sub new($) {
                CacheExif => 0,                 # Cache selected EXIF meta-data
                CacheHashes => 1,               # Let gal-scan cache file hashes
 
-               # Titles and navigation
+               # Titles and navigation (may contain HTML tags and entities)
                Title => 'An Unnamed Gallery',
                SubTitle => "",
                ParentURL => '../',
index 4b39e3b61ce57d0fa79234dfcbd4e6d16295c270..78445c6f727b0e6be53c62ed93b9a35693599d14 100644 (file)
@@ -51,7 +51,7 @@ sub showing_image($) {
 
 sub html_top($) {
        my ($self) = @_;
-       my $title = UCW::CGI::html_escape($self->get('Title'));
+       my $title = $self->get('Title');
        my $hextras = $self->extras('WebHeadExtras');
        my $theme_hextras = $self->theme_head_extras;
        print <<EOF ;