Ignore:
Timestamp:
Feb 15, 2013, 2:04:39 PM (11 years ago)
Author:
nikrou
Message:

Fix issue that altering picture page content
Fix possible sql injections issues

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/user_tags/include/t4u_content.class.php

    r20251 r20762  
    4747      $related_tags = array();
    4848      if (!empty($template->smarty->_tpl_vars['related_tags'])) {
    49         foreach ($template->smarty->_tpl_vars['related_tags'] as $id => $tag_infos) {
    50           $related_tags['~~'.$tag_infos['id'].'~~'] = $tag_infos['name'];
    51         }
    52         $template->assign('T4U_RELATED_TAGS', $related_tags);
     49        foreach ($template->smarty->_tpl_vars['related_tags'] as $id => $tag_infos) {
     50          $related_tags['~~'.$tag_infos['id'].'~~'] = $tag_infos['name'];
     51        }
     52        $template->assign('T4U_RELATED_TAGS', $related_tags);
    5353      }
    5454
     
    5656      $template->assign_var_from_handle('PLUGIN_PICTURE_AFTER', 'add_tags');
    5757    }
     58
     59    return $content;
    5860  }
    5961
     
    6567  }
    6668}
    67 ?>
Note: See TracChangeset for help on using the changeset viewer.