Changeset 82


Ignore:
Timestamp:
03/19/2009 11:44:46 PM (3 years ago)
Author:
amir
Message:

Html entities are decoded before saved from db so they will appear in their original form.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/WordPress/plugin/transposh/transposh.php

    r80 r82  
    230230     
    231231    //The original is saved in db in its escaped form 
    232     $original = $wpdb->escape($original); 
     232    $original = $wpdb->escape(html_entity_decode($original, ENT_NOQUOTES, 'UTF-8')); 
    233233     
    234234    if(ENABLE_APC && function_exists('apc_fetch')) 
     
    436436    //The original content is encoded as base64 before it is sent (i.e. token), after we 
    437437    //decode it should just the same after it was parsed.   
    438     $original = $wpdb->escape($original); 
     438    $original = $wpdb->escape(html_entity_decode($original, ENT_NOQUOTES, 'UTF-8')); 
    439439     
    440440    $update = "REPLACE INTO  $table_name (original, translated, lang, source) 
Note: See TracChangeset for help on using the changeset viewer.