Changeset 102

Show
Ignore:
Timestamp:
2007-12-15 14:49:05 (1 year ago)
Author:
hannes
Message:

Replacing XML entities with regular characters when quoting (ticket #59)

Files:

Legend:

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

    r64 r102  
    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); 
    4454        // form object 
    4555        $this->form = new Form($F->link($show_orig).'commit=y', 'postform', 'multipart/form-data');