Changeset 6767


Ignore:
Timestamp:
08/16/10 16:42:02 (9 years ago)
Author:
patdenice
Message:

Fix bug with htmlspecialchars on plugins name.

Location:
extensions/autoupdate/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/autoupdate/trunk/include/functions_remote.inc.php

    r6196 r6767  
    8686        if (!$plugins->plugin_version_compare($fs_plugin['version'], $plugin_info['revision_name'])) 
    8787        { 
    88           if (in_array($fs_plugin['name'], $ignore_list)) 
     88          $fs_plugin_name = htmlspecialchars_decode($fs_plugin['name']); 
     89 
     90          if (in_array($fs_plugin_name, $ignore_list)) 
    8991          { 
    90             array_push($new_ignore_list, $fs_plugin['name']); 
     92            array_push($new_ignore_list, $fs_plugin_name); 
    9193          } 
    9294          else 
  • extensions/autoupdate/trunk/plugins_update.php

    r6196 r6767  
    1010 
    1111  $replacement = '  <a href="{$plugin.URL_DOWNLOAD}">{\''.$l_key.'\'|@translate}</a><br> 
    12     <a href="#" onClick="autoupdate_ignore(\'{$plugin.EXT_NAME}\', true, {$smarty.foreach.plugins_loop.index}); return false;" id="au_ignore_{$smarty.foreach.plugins_loop.index}_true" {if $plugin.EXT_NAME|@in_array:$AU_IGNORE_LIST}style="display: none;"{/if}>{\'Don\\\'t notify on admin homepage\'|@translate}</a> 
    13     <a href="#" onClick="autoupdate_ignore(\'{$plugin.EXT_NAME}\', false, {$smarty.foreach.plugins_loop.index}); return false;" id="au_ignore_{$smarty.foreach.plugins_loop.index}_false" {if !$plugin.EXT_NAME|@in_array:$AU_IGNORE_LIST}style="display: none;"{/if}>{\'Notify on admin homepage\'|@translate}</a>'; 
     12    <a href="#" onClick="autoupdate_ignore(\'{$plugin.EXT_NAME|@htmlspecialchars_decode}\', true, {$smarty.foreach.plugins_loop.index}); return false;" id="au_ignore_{$smarty.foreach.plugins_loop.index}_true" {if $plugin.EXT_NAME|@htmlspecialchars_decode|@in_array:$AU_IGNORE_LIST}style="display: none;"{/if}>{\'Don\\\'t notify on admin homepage\'|@translate}</a> 
     13    <a href="#" onClick="autoupdate_ignore(\'{$plugin.EXT_NAME|@htmlspecialchars_decode}\', false, {$smarty.foreach.plugins_loop.index}); return false;" id="au_ignore_{$smarty.foreach.plugins_loop.index}_false" {if !$plugin.EXT_NAME|@htmlspecialchars_decode|@in_array:$AU_IGNORE_LIST}style="display: none;"{/if}>{\'Notify on admin homepage\'|@translate}</a>'; 
    1414 
    1515  return str_replace($search, $replacement, $content);;   
Note: See TracChangeset for help on using the changeset viewer.