Changeset 1260


Ignore:
Timestamp:
Apr 22, 2006, 5:27:13 PM (18 years ago)
Author:
chrisaga
Message:
  • merge trunk r1258:1259 into branch 1.6 (htmlentities())
Location:
branches/branch-1_6/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/include/category_subcats.inc.php

    r1173 r1260  
    150150        array(
    151151          'SRC'   => $thumbnail_src_of[ $category['picture'] ],
    152           'ALT'   => $category['name'],
     152          'ALT'   => htmlentities($category['name'],ENT_QUOTES),
    153153          'TITLE' => $lang['hint_category'],
    154154          'ICON'  => get_icon(@$category['date_last']),
     
    160160              )
    161161            ),
    162           'NAME' => $category['name'],
     162          'NAME' => htmlentities($category['name'],ENT_QUOTES),
    163163          'CAPTION_NB_IMAGES' => (($category['nb_images'] == 0) ? '' : sprintf("%d ".l10n('pictures'), $category['nb_images'])),
    164           'DESCRIPTION' => @$category['comment'],
     164          'DESCRIPTION' => htmlentities(@$category['comment'],ENT_QUOTES),
    165165          )
    166166        );
  • branches/branch-1_6/include/functions_html.inc.php

    r1202 r1260  
    451451      $menu.= ' rel="up"';
    452452    }
    453     $menu.= '>'.$category['name'].'</a>';
     453    $menu.= '>'.htmlentities($category['name'],ENT_QUOTES).'</a>';
    454454
    455455    if ($category['nb_images'] > 0)
     
    501501  $content = preg_replace($pattern, $replacement, $content);
    502502
    503   $content = '<div>'.$content.'</div>';
     503  $content = '<div>'.htmlentities($content,ENT_QUOTES).'</div>';
    504504  return $content;
    505505}
     
    551551    $output.=
    552552      ' />'
    553       .' '.$tag['name']
     553      .' '. htmlentities($tag['name'],ENT_QUOTES)
    554554      .'</label>'
    555555      .'</li>'
Note: See TracChangeset for help on using the changeset viewer.