Dotclear

Changeset 2974:d0d25c20f355


Ignore:
Timestamp:
03/25/15 08:45:57 (10 years ago)
Author:
Dsls
Branch:
2.7
Children:
2975:2833f573a998, 2976:04a121a3fb3c
Message:

Fixed SecPod? 1055, post_title escaped correctly now.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/post.php

    r2926 r2974  
    447447 
    448448if ($post_id && $post->post_status == 1) { 
    449      echo '<p><a class="onblog_link outgoing" href="'.$post->getURL().'" title="'.$post_title.'">'.__('Go to this entry on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>'; 
     449     echo '<p><a class="onblog_link outgoing" href="'.$post->getURL().'" title="'.html::escapeHTML($post_title).'">'.__('Go to this entry on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>'; 
    450450} 
    451451if ($post_id) 
  • plugins/pages/page.php

    r2926 r2974  
    348348               $img_status = ''; 
    349349     } 
    350      $edit_entry_title = '&ldquo;'.$post_title.'&rdquo;'.' '.$img_status; 
     350     $edit_entry_title = '&ldquo;'.html::escapeHTML($post_title).'&rdquo;'.' '.$img_status; 
    351351} else { 
    352352     $edit_entry_title = $page_title; 
     
    383383 
    384384if ($post_id && $post->post_status == 1) { 
    385      echo '<p><a class="onblog_link outgoing" href="'.$post->getURL().'" title="'.$post_title.'">'.__('Go to this page on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>'; 
     385     echo '<p><a class="onblog_link outgoing" href="'.$post->getURL().'" title="'.html::escapeHTML($post_title).'">'.__('Go to this page on the site').' <img src="images/outgoing-blue.png" alt="" /></a></p>'; 
    386386} 
    387387 
Note: See TracChangeset for help on using the changeset viewer.

Sites map