Changeset 30271


Ignore:
Timestamp:
Oct 23, 2014, 9:49:10 PM (10 years ago)
Author:
sarybe
Message:

[Thumbnail_Tooltip] Bug fix for html and double quotes in name (title) et description (comment). Remove slashing for simple quote.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ThumbnailTooltip/include/class.inc.php

    r30234 r30271  
    4747        $details_param = array();
    4848
    49         $details['tn_type1'] = addslashes(strip_tags($row['name']));
     49        $details['tn_type1'] = str_replace('"', '\"', strip_tags($row['name']));
    5050
    5151        if (!empty($row['hit'])) {
     
    5757
    5858        if (!empty($row['comment'])) {
    59                   $details['tn_type4'] = addslashes(strip_tags($row['comment']));
     59                  $details['tn_type4'] = str_replace('"', '\"', strip_tags($row['comment']));
    6060        }
    6161
Note: See TracChangeset for help on using the changeset viewer.