Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1395
Sanitizer.php.diff
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 7:07 PM
2014-11-21 19:07:41 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
Sanitizer.php.diff
View Options
Index: Sanitizer.php
===================================================================
--- Sanitizer.php (revision 20306)
+++ Sanitizer.php (working copy)
@@ -340,7 +340,8 @@
'h2', 'h3', 'h4', 'h5', 'h6', 'cite', 'code', 'em', 's',
'strike', 'strong', 'tt', 'var', 'div', 'center',
'blockquote', 'ol', 'ul', 'dl', 'table', 'caption', 'pre',
- 'ruby', 'rt' , 'rb' , 'rp', 'p', 'span', 'u'
+ 'ruby', 'rt' , 'rb' , 'rp', 'p', 'span', 'u',
+ 'cite', 'dfn', 'samp', 'kbd', 'abbr', 'acronym', 'q'
);
$htmlsingle = array(
'br', 'hr', 'li', 'dt', 'dd'
@@ -1076,20 +1077,20 @@
# bdo
# 9.2.1
+ 'cite' => $common,
'em' => $common,
'strong' => $common,
- 'cite' => $common,
- # dfn
+ 'dfn' => $common,
'code' => $common,
- # samp
- # kbd
+ 'samp' => $common,
+ 'kbd' => $common,
'var' => $common,
- # abbr
- # acronym
+ 'abbr' => $common,
+ 'acronym' => $common,
# 9.2.2
'blockquote' => array_merge( $common, array( 'cite' ) ),
- # q
+ 'q' => array_merge( $common, array( 'cite' ) ),
# 9.2.3
'sub' => $common,
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1218
Default Alt Text
Sanitizer.php.diff (1 KB)
Attached To
Mode
T2671: Whitelist non-problematic HTML tags: address
Attached
Detach File
Event Timeline
Log In to Comment