Changeset 1485

Show
Ignore:
Timestamp:
12/22/07 14:37:48 (10 months ago)
Author:
rho
Message:

fixed #232, tweak html tags/entities handling

Signed-off: Rolando Espinoza La fuente <rho@prosoftpeople.com>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/pages/lib/pages.inc.php

    r1471 r1485  
    157157            $content = trim(optional_param('page-content')); 
    158158        } 
    159         $content = html_entity_decode($content); 
    160159        $name = trim(optional_param('page-name')); 
    161160        $parent = optional_param('menu-parent', 0, PARAM_INT); 
     
    427426        $input_content = pages_html_wrap('label', __gettext('Content:'), array('for' => 'page-content')); 
    428427        $input_content .= pages_html_wrap( 
    429                         'textarea', htmlentities($page->content), 
     428                        'textarea', htmlspecialchars($page->content, ENT_NOQUOTES, 'utf-8'), // prevent parsing html tags like <textarea> 
    430429                        array( 
    431430                            'id' => 'page-content',