-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
webmail/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/ContentEditable.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
class HTMLPurifier_AttrDef_HTML_ContentEditable extends HTMLPurifier_AttrDef | ||
{ | ||
public function validate($string, $config, $context) | ||
{ | ||
$allowed = array('false'); | ||
if ($config->get('HTML.Trusted')) { | ||
$allowed = array('', 'true', 'false'); | ||
} | ||
|
||
$enum = new HTMLPurifier_AttrDef_Enum($allowed); | ||
|
||
return $enum->validate($string, $config, $context); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
webmail/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Forms.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
HTML.Forms | ||
TYPE: bool | ||
VERSION: 4.13.0 | ||
DEFAULT: false | ||
--DESCRIPTION-- | ||
<p> | ||
Whether or not to permit form elements in the user input, regardless of | ||
%HTML.Trusted value. Please be very careful when using this functionality, as | ||
enabling forms in untrusted documents may allow for phishing attacks. | ||
</p> | ||
--# vim: et sw=4 sts=4 |