Changeset 133

Show
Ignore:
Timestamp:
2008-02-17 09:33:38 (11 months ago)
Author:
hannes
Message:

fixing textarea for editing posts if it contains XML entities (ticket #71)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/classes/misc/Postform.php

    r107 r133  
    4242    public function __construct($show_orig, $page = FALSE, $id = FALSE, $subject = FALSE, $quote = '', $subscribed = FALSE) { 
    4343        global $SETTINGS, $F, $C, $LANG; 
    44         // define replacements 
    45         $_rep = Array( 
    46             '&'=>'&', 
    47             '&lt;'=>'<', 
    48             '&gt;'=>'>', 
    49             "&apos;"=>"'", 
    50             '&quot;'=>'"' 
    51         ); 
    52         // remove special characters from quote 
    53         $quote = strtr($quote, $_rep); 
    5444        // form object 
    5545        $this->form = new Form($F->link($show_orig).'commit=y', 'postform', 'multipart/form-data');