- Timestamp:
- Feb 17, 2006, 3:41:57 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/site_reader_remote.php
r1029 r1046 153 153 if (getAttribute($xml_element, $att) != '') 154 154 { 155 $data[$att] = getAttribute($xml_element, $att); 155 $val = html_entity_decode( getAttribute($xml_element, $att) ); 156 $data[$att] = addslashes($val); 156 157 } 157 158 } -
trunk/include/functions_category.inc.php
r1042 r1046 161 161 } 162 162 } 163 $cat['comment'] = nl2br($cat['comment']); 163 global $conf; 164 if ( !( $conf['allow_html_descriptions'] and 165 preg_match('/<(div|br|img).*>/i', $cat['comment']) ) ) 166 { 167 $cat['comment'] = nl2br($cat['comment']); 168 } 164 169 165 170 $names = array(); -
trunk/picture.php
r1042 r1046 530 530 531 531 $title_img = $picture['current']['name']; 532 $title_nb = '';533 532 if (is_numeric( $page['cat'] )) 534 533 { 535 534 $title_img = replace_space(get_cat_display_name($page['cat_name'])); 536 $n = $page['current_rank'] + 1;537 $title_nb = $n.'/'.$page['cat_nb_images'];538 535 } 539 536 else if ( $page['cat'] == 'search' ) … … 541 538 $title_img = replace_search( $title_img, $_GET['search'] ); 542 539 } 540 $title_nb = ($page['current_rank'] + 1).'/'.$page['cat_nb_images']; 543 541 544 542 // calculation of width and height -
trunk/tools/create_listing_file.php
r1029 r1046 461 461 foreach (array_keys($iptc) as $key) 462 462 { 463 $element[$key] = addslashes($iptc[$key]);463 $element[$key] = $iptc[$key]; 464 464 } 465 465 } … … 541 541 $listing = '<informations'; 542 542 $listing.= ' generation_date="'.date('Y-m-d').'"'; 543 $listing.= ' phpwg_version="'. $conf{'version'}.'"';543 $listing.= ' phpwg_version="'.htmlentities($conf{'version'}).'"'; 544 544 545 545 $attrs=array();
Note: See TracChangeset
for help on using the changeset viewer.