Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117749525
AttachmentHandler.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
522 B
Referenced Files
None
Subscribers
None
AttachmentHandler.php
View Options
<?php
/**
* Test class to test rcmail_attachment_handler class
*
* @package Tests
*/
class
Rcmail_RcmailAttachmentHandler
extends
ActionTestCase
{
/**
* Test rcmail_action::svg_filter()
*/
function
test_svg_filter
()
{
$svg
=
'<svg><a xlink:href="javascript:alert(1)"><text x="20" y="20">XSS</text></a></svg>'
;
$exp
=
'<svg><a><text x="20" y="20">XSS</text></a></svg>'
;
$out
=
rcmail_attachment_handler
::
svg_filter
(
$svg
);
$this
->
assertSame
(
$exp
,
$out
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Apr 4, 1:39 AM (1 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ea/34/270a4ce93fb27d4ba1b851185948
Default Alt Text
AttachmentHandler.php (522 B)
Attached To
Mode
R113 roundcubemail
Attached
Detach File
Event Timeline