Plugin Directory

Changeset 142232


Ignore:
Timestamp:
08/02/2009 06:23:55 PM (17 years ago)
Author:
sakuratan
Message:

Twitter API has a bug that returns broken HTML entities.
This change fix the problem.

Location:
nitwpress/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • nitwpress/trunk/nitwpress.php

    r138201 r142232  
    66Author: sakuratan
    77Author URI: http://sakuratan.biz/
    8 Version: 0.9.2.2
     8Version: 0.9.2.3
    99*/
    1010
  • nitwpress/trunk/readme.txt

    r138201 r142232  
    55Requires at least: 2.7.0
    66Tested up to: 2.7.1
    7 Stable tag: 0.9.2.2
     7Stable tag: 0.9.2.3
    88
    99A Twitter client widget.
     
    2222
    2323== Changelog ==
     24
     25= 0.9.2.3 =
     26* Twitter API has a bug that returns broken HTML entities. This change fix the problem.
    2427
    2528= 0.9.2.2 =
  • nitwpress/trunk/twitter.php

    r135413 r142232  
    2727 */
    2828function nitwpress_twitter_xml_pickup($fh, $flagment, $elemnames) {
     29    $repl = array('<' => '<', '>' => '>');
    2930    foreach ($elemnames as $elem) {
    3031    if (preg_match(",<{$elem}>.*?</{$elem}>,s", $flagment, $matches)) {
    31         fwrite($fh, $matches[0] . "\n");
     32        fwrite($fh, strtr($matches[0], $repl));
     33        fwrite($fh, "\n");
    3234    }
    3335    }
Note: See TracChangeset for help on using the changeset viewer.