Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions 15673.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

define('_JEXEC', 1);
define('JPATH_BASE', __DIR__);
require_once JPATH_BASE . '/includes/defines.php';
require_once JPATH_BASE . '/includes/framework.php';


var_dump(
JComponentHelper::filterText(
'<ul>
<li><a href="../">презентация</a>)</li>
<li>Елфимова О.Т. Разработка системы отделения космического аппарата Метеор-М в системе MSC.Adams<a style="color: maroon;" href="../../pub/diplom_labors/2016/2016_Elfimova_O_rpz.pdf">диплом</a></li>
</ul>'
)
);
13 changes: 11 additions & 2 deletions tests/unit/suites/libraries/joomla/filter/JFilterInputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ public function casesGeneric()
'ÃŒÃ�ÃŽÃ�Ã�ÑÒÓÔÕÖרÙÚÛÜÃ�ÞÃ' .
'ŸÃ Ã¡Ã¢Ã£Ã¤Ã¥Ã¦Ã§Ã¨Ã©ÃªÃ«Ã¬Ã­Ã®Ã¯Ã' .
'°Ã±Ã²Ã³Ã´ÃµÃ¶Ã·Ã¸Ã¹ÃºÃ»Ã¼Ã½Ã¾Ã¿';

$input2 = '<ul>
<li><a href="../">презентация</a>)</li>
<li>Елфимова О.Т. Разработка системы отделения космического аппарата Метеор-М в системе MSC.Adams<a style="color: maroon;" href="../../pub/diplom_labors/2016/2016_Elfimova_O_rpz.pdf">диплом</a></li>
</ul>';
return array(
'int_01' => array(
'int',
Expand Down Expand Up @@ -614,6 +617,12 @@ public function casesGeneric()
'img height="123 /&gt;"',
'From generic cases'
),
'tracker15673' => array(
'string',
$input2,
'not sure yet, never got this to run :-) ',
'From generic cases'
),
);
}

Expand Down Expand Up @@ -746,7 +755,7 @@ public function whitelist()
'<scrip &nbsp; t>alert(\'test\');</scrip t>',
'alert(\'test\');',
'From generic cases'
),
)
);
$tests = array_merge($this->casesGeneric(), $casesSpecific);

Expand Down