2008-04-22 05:38:03 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2009-07-08 02:32:44 +00:00
|
|
|
<usage>
|
|
|
|
<directive id="Core.CollectErrors">
|
|
|
|
<file name="HTMLPurifier.php">
|
2013-07-27 04:33:39 +00:00
|
|
|
<line>150</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
<file name="HTMLPurifier/Lexer.php">
|
|
|
|
<line>81</line>
|
2010-09-10 20:51:55 +00:00
|
|
|
<line>284</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
<file name="HTMLPurifier/Lexer/DirectLex.php">
|
|
|
|
<line>53</line>
|
|
|
|
<line>73</line>
|
|
|
|
<line>348</line>
|
|
|
|
</file>
|
|
|
|
<file name="HTMLPurifier/Strategy/RemoveForeignElements.php">
|
2011-12-26 07:34:42 +00:00
|
|
|
<line>50</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="CSS.MaxImgLength">
|
|
|
|
<file name="HTMLPurifier/CSSDefinition.php">
|
|
|
|
<line>157</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="CSS.Proprietary">
|
|
|
|
<file name="HTMLPurifier/CSSDefinition.php">
|
2013-02-17 23:47:38 +00:00
|
|
|
<line>215</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="CSS.AllowTricky">
|
|
|
|
<file name="HTMLPurifier/CSSDefinition.php">
|
2013-02-17 23:47:38 +00:00
|
|
|
<line>219</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
2010-11-12 18:45:03 +00:00
|
|
|
<directive id="CSS.Trusted">
|
2009-07-08 02:32:44 +00:00
|
|
|
<file name="HTMLPurifier/CSSDefinition.php">
|
2013-02-17 23:47:38 +00:00
|
|
|
<line>223</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
2010-11-12 18:45:03 +00:00
|
|
|
<directive id="CSS.AllowImportant">
|
|
|
|
<file name="HTMLPurifier/CSSDefinition.php">
|
2013-02-17 23:47:38 +00:00
|
|
|
<line>227</line>
|
2010-11-12 18:45:03 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
2009-07-08 02:32:44 +00:00
|
|
|
<directive id="CSS.AllowedProperties">
|
|
|
|
<file name="HTMLPurifier/CSSDefinition.php">
|
2013-02-17 23:47:38 +00:00
|
|
|
<line>302</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
2010-09-04 06:59:03 +00:00
|
|
|
<directive id="CSS.ForbiddenProperties">
|
|
|
|
<file name="HTMLPurifier/CSSDefinition.php">
|
2013-02-17 23:47:38 +00:00
|
|
|
<line>316</line>
|
2010-09-04 06:59:03 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
2009-07-08 02:32:44 +00:00
|
|
|
<directive id="Cache.DefinitionImpl">
|
|
|
|
<file name="HTMLPurifier/DefinitionCacheFactory.php">
|
2013-07-27 04:33:39 +00:00
|
|
|
<line>59</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.Doctype">
|
|
|
|
<file name="HTMLPurifier/DoctypeRegistry.php">
|
|
|
|
<line>83</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.CustomDoctype">
|
|
|
|
<file name="HTMLPurifier/DoctypeRegistry.php">
|
|
|
|
<line>85</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.XHTML">
|
|
|
|
<file name="HTMLPurifier/DoctypeRegistry.php">
|
|
|
|
<line>88</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.Strict">
|
|
|
|
<file name="HTMLPurifier/DoctypeRegistry.php">
|
|
|
|
<line>93</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Core.Encoding">
|
|
|
|
<file name="HTMLPurifier/Encoder.php">
|
2011-12-25 09:27:25 +00:00
|
|
|
<line>337</line>
|
2013-02-17 23:47:38 +00:00
|
|
|
<line>372</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Test.ForceNoIconv">
|
|
|
|
<file name="HTMLPurifier/Encoder.php">
|
2011-12-25 09:27:25 +00:00
|
|
|
<line>341</line>
|
2013-02-17 23:47:38 +00:00
|
|
|
<line>379</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Core.EscapeNonASCIICharacters">
|
|
|
|
<file name="HTMLPurifier/Encoder.php">
|
2013-02-17 23:47:38 +00:00
|
|
|
<line>373</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Output.CommentScriptContents">
|
|
|
|
<file name="HTMLPurifier/Generator.php">
|
2011-03-27 19:35:38 +00:00
|
|
|
<line>61</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Output.FixInnerHTML">
|
|
|
|
<file name="HTMLPurifier/Generator.php">
|
|
|
|
<line>62</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Output.SortAttr">
|
|
|
|
<file name="HTMLPurifier/Generator.php">
|
2011-03-27 19:35:38 +00:00
|
|
|
<line>63</line>
|
2010-03-08 06:56:40 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Output.FlashCompat">
|
|
|
|
<file name="HTMLPurifier/Generator.php">
|
2011-03-27 19:35:38 +00:00
|
|
|
<line>64</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Output.TidyFormat">
|
|
|
|
<file name="HTMLPurifier/Generator.php">
|
2011-03-27 19:35:38 +00:00
|
|
|
<line>93</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
2010-09-15 06:49:24 +00:00
|
|
|
<directive id="Core.NormalizeNewlines">
|
2009-07-08 02:32:44 +00:00
|
|
|
<file name="HTMLPurifier/Generator.php">
|
2011-03-27 19:35:38 +00:00
|
|
|
<line>107</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
2010-09-15 06:49:24 +00:00
|
|
|
<file name="HTMLPurifier/Lexer.php">
|
|
|
|
<line>266</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Output.Newline">
|
|
|
|
<file name="HTMLPurifier/Generator.php">
|
2011-03-27 19:35:38 +00:00
|
|
|
<line>108</line>
|
2010-09-15 06:49:24 +00:00
|
|
|
</file>
|
2009-07-08 02:32:44 +00:00
|
|
|
</directive>
|
|
|
|
<directive id="HTML.BlockWrapper">
|
|
|
|
<file name="HTMLPurifier/HTMLDefinition.php">
|
|
|
|
<line>222</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.Parent">
|
|
|
|
<file name="HTMLPurifier/HTMLDefinition.php">
|
|
|
|
<line>230</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.AllowedElements">
|
|
|
|
<file name="HTMLPurifier/HTMLDefinition.php">
|
|
|
|
<line>247</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.AllowedAttributes">
|
|
|
|
<file name="HTMLPurifier/HTMLDefinition.php">
|
|
|
|
<line>248</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.Allowed">
|
|
|
|
<file name="HTMLPurifier/HTMLDefinition.php">
|
|
|
|
<line>251</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.ForbiddenElements">
|
|
|
|
<file name="HTMLPurifier/HTMLDefinition.php">
|
2010-09-04 06:59:03 +00:00
|
|
|
<line>342</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.ForbiddenAttributes">
|
|
|
|
<file name="HTMLPurifier/HTMLDefinition.php">
|
2010-09-04 06:59:03 +00:00
|
|
|
<line>343</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.Trusted">
|
|
|
|
<file name="HTMLPurifier/HTMLModuleManager.php">
|
Implement Iframe module, and provide %HTML.SafeIframe and %URI.SafeIframeRegexp for untrusted usage.
The purpose of this addition is twofold. In trusted mode, iframes are
now unconditionally allowed.
However, many online video providers (YouTube, Vimeo) and other web
applications (Google Maps, Google Calendar, etc) provide embed code in
iframe format, which is useful functionality in untrusted mode.
You can specify iframes as trusted elements with %HTML.SafeIframe;
however, you need to additionally specify a whitelist mechanism such as
%URI.SafeIframeRegexp to say what iframe embeds are OK (by default
everything is rejected).
Note: As iframes are invalid in strict doctypes, you will not be able to
use them there.
We also added an always_load parameter to URIFilters in order to support
the strange nature of the SafeIframe URIFilter (it always needs to be
loaded, due to the inability of accessing the %HTML.SafeIframe directive
to see if it's needed!) We expect this URIFilter can expand in the future
to offer more complex validation mechanisms.
Signed-off-by: Bradley M. Froehle <brad.froehle@gmail.com>
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2011-02-14 01:47:01 +00:00
|
|
|
<line>204</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
<file name="HTMLPurifier/Lexer.php">
|
2010-09-10 20:51:55 +00:00
|
|
|
<line>271</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
<file name="HTMLPurifier/HTMLModule/Image.php">
|
|
|
|
<line>27</line>
|
|
|
|
</file>
|
|
|
|
<file name="HTMLPurifier/Lexer/DirectLex.php">
|
|
|
|
<line>36</line>
|
|
|
|
</file>
|
|
|
|
<file name="HTMLPurifier/Strategy/RemoveForeignElements.php">
|
|
|
|
<line>23</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.AllowedModules">
|
|
|
|
<file name="HTMLPurifier/HTMLModuleManager.php">
|
Implement Iframe module, and provide %HTML.SafeIframe and %URI.SafeIframeRegexp for untrusted usage.
The purpose of this addition is twofold. In trusted mode, iframes are
now unconditionally allowed.
However, many online video providers (YouTube, Vimeo) and other web
applications (Google Maps, Google Calendar, etc) provide embed code in
iframe format, which is useful functionality in untrusted mode.
You can specify iframes as trusted elements with %HTML.SafeIframe;
however, you need to additionally specify a whitelist mechanism such as
%URI.SafeIframeRegexp to say what iframe embeds are OK (by default
everything is rejected).
Note: As iframes are invalid in strict doctypes, you will not be able to
use them there.
We also added an always_load parameter to URIFilters in order to support
the strange nature of the SafeIframe URIFilter (it always needs to be
loaded, due to the inability of accessing the %HTML.SafeIframe directive
to see if it's needed!) We expect this URIFilter can expand in the future
to offer more complex validation mechanisms.
Signed-off-by: Bradley M. Froehle <brad.froehle@gmail.com>
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2011-02-14 01:47:01 +00:00
|
|
|
<line>211</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.CoreModules">
|
|
|
|
<file name="HTMLPurifier/HTMLModuleManager.php">
|
Implement Iframe module, and provide %HTML.SafeIframe and %URI.SafeIframeRegexp for untrusted usage.
The purpose of this addition is twofold. In trusted mode, iframes are
now unconditionally allowed.
However, many online video providers (YouTube, Vimeo) and other web
applications (Google Maps, Google Calendar, etc) provide embed code in
iframe format, which is useful functionality in untrusted mode.
You can specify iframes as trusted elements with %HTML.SafeIframe;
however, you need to additionally specify a whitelist mechanism such as
%URI.SafeIframeRegexp to say what iframe embeds are OK (by default
everything is rejected).
Note: As iframes are invalid in strict doctypes, you will not be able to
use them there.
We also added an always_load parameter to URIFilters in order to support
the strange nature of the SafeIframe URIFilter (it always needs to be
loaded, due to the inability of accessing the %HTML.SafeIframe directive
to see if it's needed!) We expect this URIFilter can expand in the future
to offer more complex validation mechanisms.
Signed-off-by: Bradley M. Froehle <brad.froehle@gmail.com>
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2011-02-14 01:47:01 +00:00
|
|
|
<line>212</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.Proprietary">
|
|
|
|
<file name="HTMLPurifier/HTMLModuleManager.php">
|
Implement Iframe module, and provide %HTML.SafeIframe and %URI.SafeIframeRegexp for untrusted usage.
The purpose of this addition is twofold. In trusted mode, iframes are
now unconditionally allowed.
However, many online video providers (YouTube, Vimeo) and other web
applications (Google Maps, Google Calendar, etc) provide embed code in
iframe format, which is useful functionality in untrusted mode.
You can specify iframes as trusted elements with %HTML.SafeIframe;
however, you need to additionally specify a whitelist mechanism such as
%URI.SafeIframeRegexp to say what iframe embeds are OK (by default
everything is rejected).
Note: As iframes are invalid in strict doctypes, you will not be able to
use them there.
We also added an always_load parameter to URIFilters in order to support
the strange nature of the SafeIframe URIFilter (it always needs to be
loaded, due to the inability of accessing the %HTML.SafeIframe directive
to see if it's needed!) We expect this URIFilter can expand in the future
to offer more complex validation mechanisms.
Signed-off-by: Bradley M. Froehle <brad.froehle@gmail.com>
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2011-02-14 01:47:01 +00:00
|
|
|
<line>222</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.SafeObject">
|
|
|
|
<file name="HTMLPurifier/HTMLModuleManager.php">
|
Implement Iframe module, and provide %HTML.SafeIframe and %URI.SafeIframeRegexp for untrusted usage.
The purpose of this addition is twofold. In trusted mode, iframes are
now unconditionally allowed.
However, many online video providers (YouTube, Vimeo) and other web
applications (Google Maps, Google Calendar, etc) provide embed code in
iframe format, which is useful functionality in untrusted mode.
You can specify iframes as trusted elements with %HTML.SafeIframe;
however, you need to additionally specify a whitelist mechanism such as
%URI.SafeIframeRegexp to say what iframe embeds are OK (by default
everything is rejected).
Note: As iframes are invalid in strict doctypes, you will not be able to
use them there.
We also added an always_load parameter to URIFilters in order to support
the strange nature of the SafeIframe URIFilter (it always needs to be
loaded, due to the inability of accessing the %HTML.SafeIframe directive
to see if it's needed!) We expect this URIFilter can expand in the future
to offer more complex validation mechanisms.
Signed-off-by: Bradley M. Froehle <brad.froehle@gmail.com>
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2011-02-14 01:47:01 +00:00
|
|
|
<line>225</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.SafeEmbed">
|
2010-09-28 16:01:57 +00:00
|
|
|
<file name="HTMLPurifier/HTMLModuleManager.php">
|
Implement Iframe module, and provide %HTML.SafeIframe and %URI.SafeIframeRegexp for untrusted usage.
The purpose of this addition is twofold. In trusted mode, iframes are
now unconditionally allowed.
However, many online video providers (YouTube, Vimeo) and other web
applications (Google Maps, Google Calendar, etc) provide embed code in
iframe format, which is useful functionality in untrusted mode.
You can specify iframes as trusted elements with %HTML.SafeIframe;
however, you need to additionally specify a whitelist mechanism such as
%URI.SafeIframeRegexp to say what iframe embeds are OK (by default
everything is rejected).
Note: As iframes are invalid in strict doctypes, you will not be able to
use them there.
We also added an always_load parameter to URIFilters in order to support
the strange nature of the SafeIframe URIFilter (it always needs to be
loaded, due to the inability of accessing the %HTML.SafeIframe directive
to see if it's needed!) We expect this URIFilter can expand in the future
to offer more complex validation mechanisms.
Signed-off-by: Bradley M. Froehle <brad.froehle@gmail.com>
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2011-02-14 01:47:01 +00:00
|
|
|
<line>228</line>
|
2010-09-28 16:01:57 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
2012-04-27 21:44:49 +00:00
|
|
|
<directive id="HTML.SafeScripting">
|
2009-07-08 02:32:44 +00:00
|
|
|
<file name="HTMLPurifier/HTMLModuleManager.php">
|
Implement Iframe module, and provide %HTML.SafeIframe and %URI.SafeIframeRegexp for untrusted usage.
The purpose of this addition is twofold. In trusted mode, iframes are
now unconditionally allowed.
However, many online video providers (YouTube, Vimeo) and other web
applications (Google Maps, Google Calendar, etc) provide embed code in
iframe format, which is useful functionality in untrusted mode.
You can specify iframes as trusted elements with %HTML.SafeIframe;
however, you need to additionally specify a whitelist mechanism such as
%URI.SafeIframeRegexp to say what iframe embeds are OK (by default
everything is rejected).
Note: As iframes are invalid in strict doctypes, you will not be able to
use them there.
We also added an always_load parameter to URIFilters in order to support
the strange nature of the SafeIframe URIFilter (it always needs to be
loaded, due to the inability of accessing the %HTML.SafeIframe directive
to see if it's needed!) We expect this URIFilter can expand in the future
to offer more complex validation mechanisms.
Signed-off-by: Bradley M. Froehle <brad.froehle@gmail.com>
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2011-02-14 01:47:01 +00:00
|
|
|
<line>231</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
2012-04-27 21:44:49 +00:00
|
|
|
<file name="HTMLPurifier/HTMLModule/SafeScripting.php">
|
|
|
|
<line>17</line>
|
|
|
|
</file>
|
2009-07-08 02:32:44 +00:00
|
|
|
</directive>
|
2012-04-27 21:44:49 +00:00
|
|
|
<directive id="HTML.Nofollow">
|
2011-12-25 09:27:25 +00:00
|
|
|
<file name="HTMLPurifier/HTMLModuleManager.php">
|
Implement Iframe module, and provide %HTML.SafeIframe and %URI.SafeIframeRegexp for untrusted usage.
The purpose of this addition is twofold. In trusted mode, iframes are
now unconditionally allowed.
However, many online video providers (YouTube, Vimeo) and other web
applications (Google Maps, Google Calendar, etc) provide embed code in
iframe format, which is useful functionality in untrusted mode.
You can specify iframes as trusted elements with %HTML.SafeIframe;
however, you need to additionally specify a whitelist mechanism such as
%URI.SafeIframeRegexp to say what iframe embeds are OK (by default
everything is rejected).
Note: As iframes are invalid in strict doctypes, you will not be able to
use them there.
We also added an always_load parameter to URIFilters in order to support
the strange nature of the SafeIframe URIFilter (it always needs to be
loaded, due to the inability of accessing the %HTML.SafeIframe directive
to see if it's needed!) We expect this URIFilter can expand in the future
to offer more complex validation mechanisms.
Signed-off-by: Bradley M. Froehle <brad.froehle@gmail.com>
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2011-02-14 01:47:01 +00:00
|
|
|
<line>234</line>
|
2011-12-25 09:27:25 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
2012-04-27 21:44:49 +00:00
|
|
|
<directive id="HTML.TargetBlank">
|
|
|
|
<file name="HTMLPurifier/HTMLModuleManager.php">
|
|
|
|
<line>237</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
2009-07-08 02:32:44 +00:00
|
|
|
<directive id="Attr.IDBlacklist">
|
|
|
|
<file name="HTMLPurifier/IDAccumulator.php">
|
|
|
|
<line>26</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Core.Language">
|
|
|
|
<file name="HTMLPurifier/LanguageFactory.php">
|
|
|
|
<line>88</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Core.LexerImpl">
|
|
|
|
<file name="HTMLPurifier/Lexer.php">
|
|
|
|
<line>76</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Core.MaintainLineNumbers">
|
|
|
|
<file name="HTMLPurifier/Lexer.php">
|
|
|
|
<line>80</line>
|
|
|
|
</file>
|
|
|
|
<file name="HTMLPurifier/Lexer/DirectLex.php">
|
|
|
|
<line>48</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Core.ConvertDocumentToFragment">
|
|
|
|
<file name="HTMLPurifier/Lexer.php">
|
2010-09-10 20:51:55 +00:00
|
|
|
<line>282</line>
|
2010-06-21 01:26:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Core.RemoveProcessingInstructions">
|
|
|
|
<file name="HTMLPurifier/Lexer.php">
|
2010-09-10 20:51:55 +00:00
|
|
|
<line>303</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="URI.">
|
|
|
|
<file name="HTMLPurifier/URIDefinition.php">
|
2012-03-17 03:12:16 +00:00
|
|
|
<line>60</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
<file name="HTMLPurifier/URIFilter/Munge.php">
|
|
|
|
<line>12</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="URI.Host">
|
|
|
|
<file name="HTMLPurifier/URIDefinition.php">
|
2012-03-17 03:12:16 +00:00
|
|
|
<line>70</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
2011-03-27 19:35:38 +00:00
|
|
|
<file name="HTMLPurifier/URIScheme.php">
|
2011-06-11 14:52:20 +00:00
|
|
|
<line>81</line>
|
2011-03-27 19:35:38 +00:00
|
|
|
</file>
|
2009-07-08 02:32:44 +00:00
|
|
|
</directive>
|
|
|
|
<directive id="URI.Base">
|
|
|
|
<file name="HTMLPurifier/URIDefinition.php">
|
2012-03-17 03:12:16 +00:00
|
|
|
<line>71</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="URI.DefaultScheme">
|
|
|
|
<file name="HTMLPurifier/URIDefinition.php">
|
2012-03-17 03:12:16 +00:00
|
|
|
<line>78</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="URI.AllowedSchemes">
|
|
|
|
<file name="HTMLPurifier/URISchemeRegistry.php">
|
|
|
|
<line>41</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="URI.OverrideAllowedSchemes">
|
|
|
|
<file name="HTMLPurifier/URISchemeRegistry.php">
|
|
|
|
<line>42</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="URI.Disable">
|
|
|
|
<file name="HTMLPurifier/AttrDef/URI.php">
|
|
|
|
<line>28</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Core.ColorKeywords">
|
|
|
|
<file name="HTMLPurifier/AttrDef/CSS/Color.php">
|
|
|
|
<line>12</line>
|
|
|
|
</file>
|
|
|
|
<file name="HTMLPurifier/AttrDef/HTML/Color.php">
|
|
|
|
<line>12</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
2011-03-27 19:35:38 +00:00
|
|
|
<directive id="CSS.AllowedFonts">
|
|
|
|
<file name="HTMLPurifier/AttrDef/CSS/FontFamily.php">
|
|
|
|
<line>50</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
2009-07-08 02:32:44 +00:00
|
|
|
<directive id="Attr.AllowedClasses">
|
|
|
|
<file name="HTMLPurifier/AttrDef/HTML/Class.php">
|
|
|
|
<line>18</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Attr.ForbiddenClasses">
|
|
|
|
<file name="HTMLPurifier/AttrDef/HTML/Class.php">
|
|
|
|
<line>19</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Attr.AllowedFrameTargets">
|
|
|
|
<file name="HTMLPurifier/AttrDef/HTML/FrameTarget.php">
|
|
|
|
<line>15</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Attr.EnableID">
|
|
|
|
<file name="HTMLPurifier/AttrDef/HTML/ID.php">
|
2012-01-14 08:08:02 +00:00
|
|
|
<line>30</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Attr.IDPrefix">
|
|
|
|
<file name="HTMLPurifier/AttrDef/HTML/ID.php">
|
2012-01-14 08:08:02 +00:00
|
|
|
<line>36</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Attr.IDPrefixLocal">
|
|
|
|
<file name="HTMLPurifier/AttrDef/HTML/ID.php">
|
2012-01-14 08:08:02 +00:00
|
|
|
<line>38</line>
|
|
|
|
<line>41</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Attr.IDBlacklistRegexp">
|
|
|
|
<file name="HTMLPurifier/AttrDef/HTML/ID.php">
|
2012-01-14 08:08:02 +00:00
|
|
|
<line>64</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Attr.">
|
|
|
|
<file name="HTMLPurifier/AttrDef/HTML/LinkTypes.php">
|
|
|
|
<line>30</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
2013-07-27 04:33:39 +00:00
|
|
|
<directive id="Core.AllowHostnameUnderscore">
|
|
|
|
<file name="HTMLPurifier/AttrDef/URI/Host.php">
|
|
|
|
<line>61</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
2012-01-06 13:28:00 +00:00
|
|
|
<directive id="Core.EnableIDNA">
|
|
|
|
<file name="HTMLPurifier/AttrDef/URI/Host.php">
|
2013-07-27 04:33:39 +00:00
|
|
|
<line>80</line>
|
2012-01-06 13:28:00 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
2009-07-08 02:32:44 +00:00
|
|
|
<directive id="Attr.DefaultTextDir">
|
|
|
|
<file name="HTMLPurifier/AttrTransform/BdoDir.php">
|
|
|
|
<line>13</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Core.RemoveInvalidImg">
|
|
|
|
<file name="HTMLPurifier/AttrTransform/ImgRequired.php">
|
|
|
|
<line>18</line>
|
|
|
|
</file>
|
|
|
|
<file name="HTMLPurifier/Strategy/RemoveForeignElements.php">
|
|
|
|
<line>20</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Attr.DefaultInvalidImage">
|
|
|
|
<file name="HTMLPurifier/AttrTransform/ImgRequired.php">
|
|
|
|
<line>19</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Attr.DefaultImageAlt">
|
|
|
|
<file name="HTMLPurifier/AttrTransform/ImgRequired.php">
|
|
|
|
<line>25</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Attr.DefaultInvalidImageAlt">
|
|
|
|
<file name="HTMLPurifier/AttrTransform/ImgRequired.php">
|
2010-03-08 06:56:40 +00:00
|
|
|
<line>33</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.Attr.Name.UseCDATA">
|
|
|
|
<file name="HTMLPurifier/AttrTransform/Name.php">
|
|
|
|
<line>11</line>
|
|
|
|
</file>
|
|
|
|
<file name="HTMLPurifier/HTMLModule/Name.php">
|
|
|
|
<line>13</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
2010-09-09 03:39:20 +00:00
|
|
|
<directive id="HTML.FlashAllowFullScreen">
|
|
|
|
<file name="HTMLPurifier/AttrTransform/SafeParam.php">
|
2010-05-21 16:56:37 +00:00
|
|
|
<line>38</line>
|
2010-09-09 03:39:20 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
2009-07-08 02:32:44 +00:00
|
|
|
<directive id="Core.EscapeInvalidChildren">
|
|
|
|
<file name="HTMLPurifier/ChildDef/Required.php">
|
|
|
|
<line>62</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Cache.SerializerPath">
|
|
|
|
<file name="HTMLPurifier/DefinitionCache/Serializer.php">
|
|
|
|
<line>91</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
2011-01-13 14:05:12 +00:00
|
|
|
<directive id="Cache.SerializerPermissions">
|
|
|
|
<file name="HTMLPurifier/DefinitionCache/Serializer.php">
|
|
|
|
<line>107</line>
|
|
|
|
<line>124</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
2009-07-08 02:32:44 +00:00
|
|
|
<directive id="Filter.ExtractStyleBlocks.TidyImpl">
|
|
|
|
<file name="HTMLPurifier/Filter/ExtractStyleBlocks.php">
|
2013-02-17 23:47:38 +00:00
|
|
|
<line>55</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Filter.ExtractStyleBlocks.Scope">
|
|
|
|
<file name="HTMLPurifier/Filter/ExtractStyleBlocks.php">
|
2013-02-17 23:47:38 +00:00
|
|
|
<line>79</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Filter.ExtractStyleBlocks.Escaping">
|
|
|
|
<file name="HTMLPurifier/Filter/ExtractStyleBlocks.php">
|
2013-02-17 23:47:38 +00:00
|
|
|
<line>277</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
Implement Iframe module, and provide %HTML.SafeIframe and %URI.SafeIframeRegexp for untrusted usage.
The purpose of this addition is twofold. In trusted mode, iframes are
now unconditionally allowed.
However, many online video providers (YouTube, Vimeo) and other web
applications (Google Maps, Google Calendar, etc) provide embed code in
iframe format, which is useful functionality in untrusted mode.
You can specify iframes as trusted elements with %HTML.SafeIframe;
however, you need to additionally specify a whitelist mechanism such as
%URI.SafeIframeRegexp to say what iframe embeds are OK (by default
everything is rejected).
Note: As iframes are invalid in strict doctypes, you will not be able to
use them there.
We also added an always_load parameter to URIFilters in order to support
the strange nature of the SafeIframe URIFilter (it always needs to be
loaded, due to the inability of accessing the %HTML.SafeIframe directive
to see if it's needed!) We expect this URIFilter can expand in the future
to offer more complex validation mechanisms.
Signed-off-by: Bradley M. Froehle <brad.froehle@gmail.com>
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2011-02-14 01:47:01 +00:00
|
|
|
<directive id="HTML.SafeIframe">
|
|
|
|
<file name="HTMLPurifier/HTMLModule/Iframe.php">
|
|
|
|
<line>17</line>
|
|
|
|
</file>
|
|
|
|
<file name="HTMLPurifier/URIFilter/SafeIframe.php">
|
|
|
|
<line>23</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
2009-07-08 02:32:44 +00:00
|
|
|
<directive id="HTML.MaxImgLength">
|
|
|
|
<file name="HTMLPurifier/HTMLModule/Image.php">
|
|
|
|
<line>14</line>
|
|
|
|
</file>
|
|
|
|
<file name="HTMLPurifier/HTMLModule/SafeEmbed.php">
|
|
|
|
<line>13</line>
|
|
|
|
</file>
|
|
|
|
<file name="HTMLPurifier/HTMLModule/SafeObject.php">
|
|
|
|
<line>19</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.TidyLevel">
|
|
|
|
<file name="HTMLPurifier/HTMLModule/Tidy.php">
|
|
|
|
<line>45</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.TidyAdd">
|
|
|
|
<file name="HTMLPurifier/HTMLModule/Tidy.php">
|
|
|
|
<line>49</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.TidyRemove">
|
|
|
|
<file name="HTMLPurifier/HTMLModule/Tidy.php">
|
|
|
|
<line>50</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="AutoFormat.PurifierLinkify.DocURL">
|
|
|
|
<file name="HTMLPurifier/Injector/PurifierLinkify.php">
|
|
|
|
<line>15</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="AutoFormat.RemoveEmpty.RemoveNbsp">
|
|
|
|
<file name="HTMLPurifier/Injector/RemoveEmpty.php">
|
2013-02-17 23:47:38 +00:00
|
|
|
<line>15</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="AutoFormat.RemoveEmpty.RemoveNbsp.Exceptions">
|
|
|
|
<file name="HTMLPurifier/Injector/RemoveEmpty.php">
|
2013-02-17 23:47:38 +00:00
|
|
|
<line>16</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Core.AggressivelyFixLt">
|
|
|
|
<file name="HTMLPurifier/Lexer/DOMLex.php">
|
|
|
|
<line>44</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="Core.DirectLexLineNumberSyncInterval">
|
|
|
|
<file name="HTMLPurifier/Lexer/DirectLex.php">
|
|
|
|
<line>70</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
2013-02-17 23:47:38 +00:00
|
|
|
<directive id="Core.DisableExcludes">
|
|
|
|
<file name="HTMLPurifier/Strategy/FixNesting.php">
|
|
|
|
<line>57</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
2009-07-08 02:32:44 +00:00
|
|
|
<directive id="Core.EscapeInvalidTags">
|
|
|
|
<file name="HTMLPurifier/Strategy/MakeWellFormed.php">
|
2011-03-27 19:35:38 +00:00
|
|
|
<line>53</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
<file name="HTMLPurifier/Strategy/RemoveForeignElements.php">
|
|
|
|
<line>19</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
2011-12-26 07:34:42 +00:00
|
|
|
<directive id="HTML.AllowedComments">
|
|
|
|
<file name="HTMLPurifier/Strategy/RemoveForeignElements.php">
|
|
|
|
<line>24</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="HTML.AllowedCommentsRegexp">
|
2009-07-08 02:32:44 +00:00
|
|
|
<file name="HTMLPurifier/Strategy/RemoveForeignElements.php">
|
|
|
|
<line>25</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
2011-12-26 07:34:42 +00:00
|
|
|
<directive id="Core.RemoveScriptContents">
|
|
|
|
<file name="HTMLPurifier/Strategy/RemoveForeignElements.php">
|
|
|
|
<line>28</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
2009-07-08 02:32:44 +00:00
|
|
|
<directive id="Core.HiddenElements">
|
|
|
|
<file name="HTMLPurifier/Strategy/RemoveForeignElements.php">
|
2011-12-26 07:34:42 +00:00
|
|
|
<line>29</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="URI.HostBlacklist">
|
|
|
|
<file name="HTMLPurifier/URIFilter/HostBlacklist.php">
|
2012-01-14 08:08:02 +00:00
|
|
|
<line>12</line>
|
2009-07-08 02:32:44 +00:00
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="URI.MungeResources">
|
|
|
|
<file name="HTMLPurifier/URIFilter/Munge.php">
|
|
|
|
<line>14</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
|
|
|
<directive id="URI.MungeSecretKey">
|
|
|
|
<file name="HTMLPurifier/URIFilter/Munge.php">
|
|
|
|
<line>15</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
Implement Iframe module, and provide %HTML.SafeIframe and %URI.SafeIframeRegexp for untrusted usage.
The purpose of this addition is twofold. In trusted mode, iframes are
now unconditionally allowed.
However, many online video providers (YouTube, Vimeo) and other web
applications (Google Maps, Google Calendar, etc) provide embed code in
iframe format, which is useful functionality in untrusted mode.
You can specify iframes as trusted elements with %HTML.SafeIframe;
however, you need to additionally specify a whitelist mechanism such as
%URI.SafeIframeRegexp to say what iframe embeds are OK (by default
everything is rejected).
Note: As iframes are invalid in strict doctypes, you will not be able to
use them there.
We also added an always_load parameter to URIFilters in order to support
the strange nature of the SafeIframe URIFilter (it always needs to be
loaded, due to the inability of accessing the %HTML.SafeIframe directive
to see if it's needed!) We expect this URIFilter can expand in the future
to offer more complex validation mechanisms.
Signed-off-by: Bradley M. Froehle <brad.froehle@gmail.com>
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
2011-02-14 01:47:01 +00:00
|
|
|
<directive id="URI.SafeIframeRegexp">
|
|
|
|
<file name="HTMLPurifier/URIFilter/SafeIframe.php">
|
|
|
|
<line>18</line>
|
|
|
|
</file>
|
|
|
|
</directive>
|
2009-07-08 02:32:44 +00:00
|
|
|
</usage>
|