srchub

srchub Commit Details


Date:2014-03-09 23:10:52 (11 years 1 month ago)
Author:Natalie Adams
Branch:master
Commit:cc6f03a62d719a619f95fb26663fa886e3d943d0
Parents: 700889bedd504d9889e9fda8b0e911b914066775
Message:Fixing issue with filter

Changes:

File differences

indefero/src/IDF/templates/idf/wiki/viewPage.html
2727
2828
2929
30
31
32
3330
3431
3532
<div id="wiki-toc"><span id="contentheader">{trans 'Table of Content'}</span><div id="wiki-toc-content"></div></div>
<script type="text/javascript" src="{media '/idf/js/wiki-toc.js'}"></script>
<p class="desc">{$page.summary}</p>
    {literal}
    <script type="syntaxhighlighter" class="brush: js"> for(i = 0; i < 10; i++) { } </script>
    {/literal}
{markdown $rev.content, $request}
pluf/src/Pluf/Text/HTML/Filter.php
125125
126126
127127
128
129
128130
129131
130132
......
173175
174176
175177
176
177
178
179
178
179
180
181
182
183
184
180185
181186
182187
     */
    public $allow_hexadecimal_entities = 1;
    public $check_tags_flag = 0;
    public $allowed_entities = array(
                                     'amp',
                                     'gt',
    function check_tags($data)
    {
        $data = preg_replace("/<(.*?)>/se", "\$this->process_tag(\$this->StripSingle('\\1'))",$data);
        foreach (array_keys($this->tag_counts) as $tag) {
            for ($i=0; $i<$this->tag_counts[$tag]; $i++) {
                $data .= "</$tag>";
        if ($this->check_tags_flag)
        {
            $data = preg_replace("/<(.*?)>/se", "\$this->process_tag(\$this->StripSingle('\\1'))",$data);
            foreach (array_keys($this->tag_counts) as $tag) {
                for ($i=0; $i<$this->tag_counts[$tag]; $i++) {
                    $data .= "</$tag>";
                }
            }
        }
        return $data;

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.11353s using 14 queries.