From 010efc9b814b433bc60353caec185d905688a32b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 5 Jun 2012 21:52:21 +0400 Subject: [PATCH] Revert "remove htmlpurifier" This reverts commit c21a462d52bd32737c32c29b060da03b38f1c2e6. --- cache/htmlpurifier/.empty | 0 debian/tt-rss-common.postinst | 4 + include/functions.php | 29 +- include/sanity_check.php | 6 + lib/htmlpurifier/CREDITS | 9 + lib/htmlpurifier/LICENSE | 504 +++ .../library/HTMLPurifier.auto.php | 11 + .../library/HTMLPurifier.autoload.php | 26 + .../library/HTMLPurifier.func.php | 23 + .../library/HTMLPurifier.includes.php | 221 + .../library/HTMLPurifier.kses.php | 30 + .../library/HTMLPurifier.path.php | 11 + lib/htmlpurifier/library/HTMLPurifier.php | 237 + .../library/HTMLPurifier.safe-includes.php | 215 + .../library/HTMLPurifier/AttrCollections.php | 128 + .../library/HTMLPurifier/AttrDef.php | 123 + .../library/HTMLPurifier/AttrDef/CSS.php | 87 + .../HTMLPurifier/AttrDef/CSS/AlphaValue.php | 21 + .../HTMLPurifier/AttrDef/CSS/Background.php | 87 + .../AttrDef/CSS/BackgroundPosition.php | 133 + .../HTMLPurifier/AttrDef/CSS/Border.php | 43 + .../HTMLPurifier/AttrDef/CSS/Color.php | 78 + .../HTMLPurifier/AttrDef/CSS/Composite.php | 38 + .../AttrDef/CSS/DenyElementDecorator.php | 28 + .../HTMLPurifier/AttrDef/CSS/Filter.php | 54 + .../library/HTMLPurifier/AttrDef/CSS/Font.php | 149 + .../HTMLPurifier/AttrDef/CSS/FontFamily.php | 197 + .../HTMLPurifier/AttrDef/CSS/Ident.php | 24 + .../AttrDef/CSS/ImportantDecorator.php | 40 + .../HTMLPurifier/AttrDef/CSS/Length.php | 47 + .../HTMLPurifier/AttrDef/CSS/ListStyle.php | 78 + .../HTMLPurifier/AttrDef/CSS/Multiple.php | 58 + .../HTMLPurifier/AttrDef/CSS/Number.php | 69 + .../HTMLPurifier/AttrDef/CSS/Percentage.php | 40 + .../AttrDef/CSS/TextDecoration.php | 38 + .../library/HTMLPurifier/AttrDef/CSS/URI.php | 61 + .../library/HTMLPurifier/AttrDef/Clone.php | 28 + .../library/HTMLPurifier/AttrDef/Enum.php | 65 + .../HTMLPurifier/AttrDef/HTML/Bool.php | 28 + .../HTMLPurifier/AttrDef/HTML/Class.php | 34 + .../HTMLPurifier/AttrDef/HTML/Color.php | 32 + .../HTMLPurifier/AttrDef/HTML/FrameTarget.php | 21 + .../library/HTMLPurifier/AttrDef/HTML/ID.php | 80 + .../HTMLPurifier/AttrDef/HTML/Length.php | 41 + .../HTMLPurifier/AttrDef/HTML/LinkTypes.php | 53 + .../HTMLPurifier/AttrDef/HTML/MultiLength.php | 41 + .../HTMLPurifier/AttrDef/HTML/Nmtokens.php | 52 + .../HTMLPurifier/AttrDef/HTML/Pixels.php | 48 + .../library/HTMLPurifier/AttrDef/Integer.php | 73 + .../library/HTMLPurifier/AttrDef/Lang.php | 73 + .../library/HTMLPurifier/AttrDef/Switch.php | 34 + .../library/HTMLPurifier/AttrDef/Text.php | 15 + .../library/HTMLPurifier/AttrDef/URI.php | 77 + .../HTMLPurifier/AttrDef/URI/Email.php | 17 + .../AttrDef/URI/Email/SimpleCheck.php | 21 + .../library/HTMLPurifier/AttrDef/URI/Host.php | 101 + .../library/HTMLPurifier/AttrDef/URI/IPv4.php | 39 + .../library/HTMLPurifier/AttrDef/URI/IPv6.php | 99 + .../library/HTMLPurifier/AttrTransform.php | 56 + .../HTMLPurifier/AttrTransform/Background.php | 23 + .../HTMLPurifier/AttrTransform/BdoDir.php | 19 + .../HTMLPurifier/AttrTransform/BgColor.php | 23 + .../HTMLPurifier/AttrTransform/BoolToCSS.php | 36 + .../HTMLPurifier/AttrTransform/Border.php | 18 + .../HTMLPurifier/AttrTransform/EnumToCSS.php | 58 + .../AttrTransform/ImgRequired.php | 43 + .../HTMLPurifier/AttrTransform/ImgSpace.php | 44 + .../HTMLPurifier/AttrTransform/Input.php | 40 + .../HTMLPurifier/AttrTransform/Lang.php | 28 + .../HTMLPurifier/AttrTransform/Length.php | 27 + .../HTMLPurifier/AttrTransform/Name.php | 21 + .../HTMLPurifier/AttrTransform/NameSync.php | 27 + .../HTMLPurifier/AttrTransform/Nofollow.php | 45 + .../HTMLPurifier/AttrTransform/SafeEmbed.php | 15 + .../HTMLPurifier/AttrTransform/SafeObject.php | 16 + .../HTMLPurifier/AttrTransform/SafeParam.php | 64 + .../AttrTransform/ScriptRequired.php | 16 + .../AttrTransform/TargetBlank.php | 38 + .../HTMLPurifier/AttrTransform/Textarea.php | 18 + .../library/HTMLPurifier/AttrTypes.php | 91 + .../library/HTMLPurifier/AttrValidator.php | 162 + .../library/HTMLPurifier/Bootstrap.php | 104 + .../library/HTMLPurifier/CSSDefinition.php | 322 ++ .../library/HTMLPurifier/ChildDef.php | 48 + .../HTMLPurifier/ChildDef/Chameleon.php | 48 + .../library/HTMLPurifier/ChildDef/Custom.php | 90 + .../library/HTMLPurifier/ChildDef/Empty.php | 20 + .../library/HTMLPurifier/ChildDef/List.php | 120 + .../HTMLPurifier/ChildDef/Optional.php | 26 + .../HTMLPurifier/ChildDef/Required.php | 117 + .../ChildDef/StrictBlockquote.php | 88 + .../library/HTMLPurifier/ChildDef/Table.php | 227 + .../library/HTMLPurifier/Config.php | 709 +++ .../library/HTMLPurifier/ConfigSchema.php | 164 + .../ConfigSchema/Builder/ConfigSchema.php | 44 + .../HTMLPurifier/ConfigSchema/Builder/Xml.php | 106 + .../HTMLPurifier/ConfigSchema/Exception.php | 11 + .../HTMLPurifier/ConfigSchema/Interchange.php | 42 + .../ConfigSchema/Interchange/Directive.php | 77 + .../ConfigSchema/Interchange/Id.php | 37 + .../ConfigSchema/InterchangeBuilder.php | 180 + .../HTMLPurifier/ConfigSchema/Validator.php | 206 + .../ConfigSchema/ValidatorAtom.php | 66 + .../HTMLPurifier/ConfigSchema/schema.ser | Bin 0 -> 14690 bytes .../schema/Attr.AllowedClasses.txt | 8 + .../schema/Attr.AllowedFrameTargets.txt | 12 + .../ConfigSchema/schema/Attr.AllowedRel.txt | 9 + .../ConfigSchema/schema/Attr.AllowedRev.txt | 9 + .../schema/Attr.ClassUseCDATA.txt | 19 + .../schema/Attr.DefaultImageAlt.txt | 11 + .../schema/Attr.DefaultInvalidImage.txt | 9 + .../schema/Attr.DefaultInvalidImageAlt.txt | 8 + .../schema/Attr.DefaultTextDir.txt | 10 + .../ConfigSchema/schema/Attr.EnableID.txt | 16 + .../schema/Attr.ForbiddenClasses.txt | 8 + .../ConfigSchema/schema/Attr.IDBlacklist.txt | 5 + .../schema/Attr.IDBlacklistRegexp.txt | 9 + .../ConfigSchema/schema/Attr.IDPrefix.txt | 12 + .../schema/Attr.IDPrefixLocal.txt | 14 + .../schema/AutoFormat.AutoParagraph.txt | 31 + .../ConfigSchema/schema/AutoFormat.Custom.txt | 12 + .../schema/AutoFormat.DisplayLinkURI.txt | 11 + .../schema/AutoFormat.Linkify.txt | 12 + .../AutoFormat.PurifierLinkify.DocURL.txt | 12 + .../schema/AutoFormat.PurifierLinkify.txt | 12 + ...rmat.RemoveEmpty.RemoveNbsp.Exceptions.txt | 11 + .../AutoFormat.RemoveEmpty.RemoveNbsp.txt | 15 + .../schema/AutoFormat.RemoveEmpty.txt | 46 + ...utoFormat.RemoveSpansWithoutAttributes.txt | 11 + .../schema/CSS.AllowImportant.txt | 8 + .../ConfigSchema/schema/CSS.AllowTricky.txt | 11 + .../ConfigSchema/schema/CSS.AllowedFonts.txt | 12 + .../schema/CSS.AllowedProperties.txt | 18 + .../ConfigSchema/schema/CSS.DefinitionRev.txt | 11 + .../schema/CSS.ForbiddenProperties.txt | 13 + .../ConfigSchema/schema/CSS.MaxImgLength.txt | 16 + .../ConfigSchema/schema/CSS.Proprietary.txt | 10 + .../ConfigSchema/schema/CSS.Trusted.txt | 9 + .../schema/Cache.DefinitionImpl.txt | 14 + .../schema/Cache.SerializerPath.txt | 13 + .../schema/Cache.SerializerPermissions.txt | 11 + .../schema/Core.AggressivelyFixLt.txt | 18 + .../schema/Core.CollectErrors.txt | 12 + .../schema/Core.ColorKeywords.txt | 29 + .../schema/Core.ConvertDocumentToFragment.txt | 14 + .../Core.DirectLexLineNumberSyncInterval.txt | 17 + .../ConfigSchema/schema/Core.EnableIDNA.txt | 9 + .../ConfigSchema/schema/Core.Encoding.txt | 15 + .../schema/Core.EscapeInvalidChildren.txt | 10 + .../schema/Core.EscapeInvalidTags.txt | 7 + .../schema/Core.EscapeNonASCIICharacters.txt | 13 + .../schema/Core.HiddenElements.txt | 19 + .../ConfigSchema/schema/Core.Language.txt | 10 + .../ConfigSchema/schema/Core.LexerImpl.txt | 34 + .../schema/Core.MaintainLineNumbers.txt | 16 + .../schema/Core.NormalizeNewlines.txt | 11 + .../schema/Core.RemoveInvalidImg.txt | 12 + .../Core.RemoveProcessingInstructions.txt | 11 + .../schema/Core.RemoveScriptContents.txt | 12 + .../ConfigSchema/schema/Filter.Custom.txt | 11 + .../Filter.ExtractStyleBlocks.Escaping.txt | 14 + .../Filter.ExtractStyleBlocks.Scope.txt | 29 + .../Filter.ExtractStyleBlocks.TidyImpl.txt | 16 + .../schema/Filter.ExtractStyleBlocks.txt | 74 + .../ConfigSchema/schema/Filter.YouTube.txt | 16 + .../ConfigSchema/schema/HTML.Allowed.txt | 25 + .../schema/HTML.AllowedAttributes.txt | 19 + .../schema/HTML.AllowedComments.txt | 10 + .../schema/HTML.AllowedCommentsRegexp.txt | 15 + .../schema/HTML.AllowedElements.txt | 23 + .../schema/HTML.AllowedModules.txt | 20 + .../schema/HTML.Attr.Name.UseCDATA.txt | 11 + .../ConfigSchema/schema/HTML.BlockWrapper.txt | 18 + .../ConfigSchema/schema/HTML.CoreModules.txt | 23 + .../schema/HTML.CustomDoctype.txt | 9 + .../ConfigSchema/schema/HTML.DefinitionID.txt | 33 + .../schema/HTML.DefinitionRev.txt | 16 + .../ConfigSchema/schema/HTML.Doctype.txt | 11 + .../schema/HTML.FlashAllowFullScreen.txt | 11 + .../schema/HTML.ForbiddenAttributes.txt | 21 + .../schema/HTML.ForbiddenElements.txt | 20 + .../ConfigSchema/schema/HTML.MaxImgLength.txt | 14 + .../ConfigSchema/schema/HTML.Nofollow.txt | 7 + .../ConfigSchema/schema/HTML.Parent.txt | 12 + .../ConfigSchema/schema/HTML.Proprietary.txt | 12 + .../ConfigSchema/schema/HTML.SafeEmbed.txt | 13 + .../ConfigSchema/schema/HTML.SafeIframe.txt | 13 + .../ConfigSchema/schema/HTML.SafeObject.txt | 13 + .../ConfigSchema/schema/HTML.Strict.txt | 9 + .../ConfigSchema/schema/HTML.TargetBlank.txt | 8 + .../ConfigSchema/schema/HTML.TidyAdd.txt | 8 + .../ConfigSchema/schema/HTML.TidyLevel.txt | 24 + .../ConfigSchema/schema/HTML.TidyRemove.txt | 8 + .../ConfigSchema/schema/HTML.Trusted.txt | 9 + .../ConfigSchema/schema/HTML.XHTML.txt | 11 + .../schema/Output.CommentScriptContents.txt | 10 + .../schema/Output.FixInnerHTML.txt | 15 + .../schema/Output.FlashCompat.txt | 11 + .../ConfigSchema/schema/Output.Newline.txt | 13 + .../ConfigSchema/schema/Output.SortAttr.txt | 14 + .../ConfigSchema/schema/Output.TidyFormat.txt | 25 + .../ConfigSchema/schema/Test.ForceNoIconv.txt | 7 + .../schema/URI.AllowedSchemes.txt | 17 + .../ConfigSchema/schema/URI.Base.txt | 17 + .../ConfigSchema/schema/URI.DefaultScheme.txt | 10 + .../ConfigSchema/schema/URI.DefinitionID.txt | 11 + .../ConfigSchema/schema/URI.DefinitionRev.txt | 11 + .../ConfigSchema/schema/URI.Disable.txt | 14 + .../schema/URI.DisableExternal.txt | 11 + .../schema/URI.DisableExternalResources.txt | 13 + .../schema/URI.DisableResources.txt | 15 + .../ConfigSchema/schema/URI.Host.txt | 19 + .../ConfigSchema/schema/URI.HostBlacklist.txt | 9 + .../ConfigSchema/schema/URI.MakeAbsolute.txt | 13 + .../ConfigSchema/schema/URI.Munge.txt | 83 + .../schema/URI.MungeResources.txt | 17 + .../schema/URI.MungeSecretKey.txt | 30 + .../schema/URI.OverrideAllowedSchemes.txt | 9 + .../schema/URI.SafeIframeRegexp.txt | 22 + .../HTMLPurifier/ConfigSchema/schema/info.ini | 3 + .../library/HTMLPurifier/ContentSets.php | 155 + .../library/HTMLPurifier/Context.php | 82 + .../library/HTMLPurifier/Definition.php | 50 + .../library/HTMLPurifier/DefinitionCache.php | 108 + .../DefinitionCache/Decorator.php | 62 + .../DefinitionCache/Decorator/Cleanup.php | 43 + .../DefinitionCache/Decorator/Memory.php | 46 + .../DefinitionCache/Decorator/Template.php.in | 47 + .../HTMLPurifier/DefinitionCache/Null.php | 39 + .../DefinitionCache/Serializer.php | 191 + .../DefinitionCache/Serializer/README | 3 + .../HTMLPurifier/DefinitionCacheFactory.php | 91 + .../library/HTMLPurifier/Doctype.php | 60 + .../library/HTMLPurifier/DoctypeRegistry.php | 103 + .../library/HTMLPurifier/ElementDef.php | 183 + .../library/HTMLPurifier/Encoder.php | 540 +++ .../library/HTMLPurifier/EntityLookup.php | 44 + .../HTMLPurifier/EntityLookup/entities.ser | 1 + .../library/HTMLPurifier/EntityParser.php | 144 + .../library/HTMLPurifier/ErrorCollector.php | 209 + .../library/HTMLPurifier/ErrorStruct.php | 60 + .../library/HTMLPurifier/Exception.php | 12 + .../library/HTMLPurifier/Filter.php | 46 + .../Filter/ExtractStyleBlocks.php | 288 ++ .../library/HTMLPurifier/Filter/YouTube.php | 39 + .../library/HTMLPurifier/Generator.php | 254 ++ .../library/HTMLPurifier/HTMLDefinition.php | 425 ++ .../library/HTMLPurifier/HTMLModule.php | 244 ++ .../library/HTMLPurifier/HTMLModule/Bdo.php | 31 + .../HTMLModule/CommonAttributes.php | 26 + .../library/HTMLPurifier/HTMLModule/Edit.php | 38 + .../library/HTMLPurifier/HTMLModule/Forms.php | 119 + .../HTMLPurifier/HTMLModule/Hypertext.php | 31 + .../HTMLPurifier/HTMLModule/Iframe.php | 38 + .../library/HTMLPurifier/HTMLModule/Image.php | 40 + .../HTMLPurifier/HTMLModule/Legacy.php | 159 + .../library/HTMLPurifier/HTMLModule/List.php | 43 + .../library/HTMLPurifier/HTMLModule/Name.php | 21 + .../HTMLPurifier/HTMLModule/Nofollow.php | 19 + .../HTMLModule/NonXMLCommonAttributes.php | 14 + .../HTMLPurifier/HTMLModule/Object.php | 47 + .../HTMLPurifier/HTMLModule/Presentation.php | 36 + .../HTMLPurifier/HTMLModule/Proprietary.php | 33 + .../library/HTMLPurifier/HTMLModule/Ruby.php | 27 + .../HTMLPurifier/HTMLModule/SafeEmbed.php | 34 + .../HTMLPurifier/HTMLModule/SafeObject.php | 52 + .../HTMLPurifier/HTMLModule/Scripting.php | 54 + .../HTMLModule/StyleAttribute.php | 24 + .../HTMLPurifier/HTMLModule/Tables.php | 69 + .../HTMLPurifier/HTMLModule/Target.php | 23 + .../HTMLPurifier/HTMLModule/TargetBlank.php | 19 + .../library/HTMLPurifier/HTMLModule/Text.php | 71 + .../library/HTMLPurifier/HTMLModule/Tidy.php | 207 + .../HTMLPurifier/HTMLModule/Tidy/Name.php | 24 + .../HTMLModule/Tidy/Proprietary.php | 24 + .../HTMLPurifier/HTMLModule/Tidy/Strict.php | 21 + .../HTMLModule/Tidy/Transitional.php | 9 + .../HTMLPurifier/HTMLModule/Tidy/XHTML.php | 17 + .../HTMLModule/Tidy/XHTMLAndHTML4.php | 161 + .../HTMLModule/XMLCommonAttributes.php | 14 + .../HTMLPurifier/HTMLModuleManager.php | 415 ++ .../library/HTMLPurifier/IDAccumulator.php | 53 + .../library/HTMLPurifier/Injector.php | 239 + .../HTMLPurifier/Injector/AutoParagraph.php | 345 ++ .../HTMLPurifier/Injector/DisplayLinkURI.php | 26 + .../library/HTMLPurifier/Injector/Linkify.php | 46 + .../HTMLPurifier/Injector/PurifierLinkify.php | 45 + .../HTMLPurifier/Injector/RemoveEmpty.php | 51 + .../Injector/RemoveSpansWithoutAttributes.php | 60 + .../HTMLPurifier/Injector/SafeObject.php | 91 + .../library/HTMLPurifier/Language.php | 163 + .../Language/classes/en-x-test.php | 12 + .../Language/messages/en-x-test.php | 11 + .../Language/messages/en-x-testmini.php | 12 + .../HTMLPurifier/Language/messages/en.php | 63 + .../library/HTMLPurifier/LanguageFactory.php | 198 + .../library/HTMLPurifier/Length.php | 115 + .../library/HTMLPurifier/Lexer.php | 326 ++ .../library/HTMLPurifier/Lexer/DOMLex.php | 243 + .../library/HTMLPurifier/Lexer/DirectLex.php | 490 +++ .../library/HTMLPurifier/Lexer/PH5P.php | 3904 +++++++++++++++++ .../library/HTMLPurifier/PercentEncoder.php | 98 + .../library/HTMLPurifier/Printer.php | 176 + .../HTMLPurifier/Printer/CSSDefinition.php | 38 + .../HTMLPurifier/Printer/ConfigForm.css | 10 + .../HTMLPurifier/Printer/ConfigForm.js | 5 + .../HTMLPurifier/Printer/ConfigForm.php | 368 ++ .../HTMLPurifier/Printer/HTMLDefinition.php | 272 ++ .../library/HTMLPurifier/PropertyList.php | 86 + .../HTMLPurifier/PropertyListIterator.php | 32 + .../library/HTMLPurifier/Strategy.php | 26 + .../HTMLPurifier/Strategy/Composite.php | 23 + .../library/HTMLPurifier/Strategy/Core.php | 18 + .../HTMLPurifier/Strategy/FixNesting.php | 328 ++ .../HTMLPurifier/Strategy/MakeWellFormed.php | 532 +++ .../Strategy/RemoveForeignElements.php | 188 + .../Strategy/ValidateAttributes.php | 39 + .../library/HTMLPurifier/StringHash.php | 39 + .../library/HTMLPurifier/StringHashParser.php | 110 + .../library/HTMLPurifier/TagTransform.php | 36 + .../HTMLPurifier/TagTransform/Font.php | 98 + .../HTMLPurifier/TagTransform/Simple.php | 35 + .../library/HTMLPurifier/Token.php | 57 + .../library/HTMLPurifier/Token/Comment.php | 22 + .../library/HTMLPurifier/Token/Empty.php | 11 + .../library/HTMLPurifier/Token/End.php | 19 + .../library/HTMLPurifier/Token/Start.php | 11 + .../library/HTMLPurifier/Token/Tag.php | 57 + .../library/HTMLPurifier/Token/Text.php | 33 + .../library/HTMLPurifier/TokenFactory.php | 94 + lib/htmlpurifier/library/HTMLPurifier/URI.php | 242 + .../library/HTMLPurifier/URIDefinition.php | 102 + .../library/HTMLPurifier/URIFilter.php | 67 + .../URIFilter/DisableExternal.php | 23 + .../URIFilter/DisableExternalResources.php | 12 + .../URIFilter/DisableResources.php | 11 + .../HTMLPurifier/URIFilter/HostBlacklist.php | 25 + .../HTMLPurifier/URIFilter/MakeAbsolute.php | 114 + .../library/HTMLPurifier/URIFilter/Munge.php | 53 + .../HTMLPurifier/URIFilter/SafeIframe.php | 35 + .../library/HTMLPurifier/URIParser.php | 70 + .../library/HTMLPurifier/URIScheme.php | 95 + .../library/HTMLPurifier/URIScheme/data.php | 96 + .../library/HTMLPurifier/URIScheme/file.php | 32 + .../library/HTMLPurifier/URIScheme/ftp.php | 42 + .../library/HTMLPurifier/URIScheme/http.php | 19 + .../library/HTMLPurifier/URIScheme/https.php | 13 + .../library/HTMLPurifier/URIScheme/mailto.php | 27 + .../library/HTMLPurifier/URIScheme/news.php | 22 + .../library/HTMLPurifier/URIScheme/nntp.php | 19 + .../HTMLPurifier/URISchemeRegistry.php | 68 + .../library/HTMLPurifier/UnitConverter.php | 254 ++ .../library/HTMLPurifier/VarParser.php | 154 + .../HTMLPurifier/VarParser/Flexible.php | 103 + .../library/HTMLPurifier/VarParser/Native.php | 26 + .../HTMLPurifier/VarParserException.php | 11 + 356 files changed, 26185 insertions(+), 4 deletions(-) create mode 100644 cache/htmlpurifier/.empty create mode 100644 lib/htmlpurifier/CREDITS create mode 100644 lib/htmlpurifier/LICENSE create mode 100644 lib/htmlpurifier/library/HTMLPurifier.auto.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier.autoload.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier.func.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier.includes.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier.kses.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier.path.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier.safe-includes.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrCollections.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/AlphaValue.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Background.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/BackgroundPosition.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Border.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Color.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Composite.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/DenyElementDecorator.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Filter.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Font.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/FontFamily.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Ident.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/ImportantDecorator.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Length.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/ListStyle.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Multiple.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Number.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/Percentage.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/TextDecoration.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/CSS/URI.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/Clone.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/Enum.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Bool.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Class.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Color.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/FrameTarget.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/ID.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Length.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/LinkTypes.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/MultiLength.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Nmtokens.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/HTML/Pixels.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/Integer.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/Lang.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/Switch.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/Text.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/Host.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/IPv4.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrDef/URI/IPv6.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Background.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/BdoDir.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/BgColor.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/BoolToCSS.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Border.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/EnumToCSS.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/ImgRequired.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/ImgSpace.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Input.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Lang.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Length.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Name.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/NameSync.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Nofollow.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeEmbed.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeObject.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/SafeParam.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/ScriptRequired.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/TargetBlank.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTransform/Textarea.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrTypes.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/AttrValidator.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Bootstrap.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/CSSDefinition.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ChildDef.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ChildDef/Chameleon.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ChildDef/Custom.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ChildDef/Empty.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ChildDef/List.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ChildDef/Optional.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ChildDef/Required.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ChildDef/StrictBlockquote.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ChildDef/Table.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Config.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Builder/ConfigSchema.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Builder/Xml.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Exception.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange/Directive.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Interchange/Id.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/InterchangeBuilder.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/Validator.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/ValidatorAtom.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema.ser create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.AllowedClasses.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.AllowedFrameTargets.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.AllowedRel.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.AllowedRev.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.ClassUseCDATA.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.DefaultImageAlt.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.DefaultInvalidImage.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.DefaultInvalidImageAlt.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.DefaultTextDir.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.EnableID.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.ForbiddenClasses.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.IDBlacklist.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.IDBlacklistRegexp.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.IDPrefix.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Attr.IDPrefixLocal.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.AutoParagraph.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.Custom.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.DisplayLinkURI.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.Linkify.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.PurifierLinkify.DocURL.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.PurifierLinkify.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.RemoveEmpty.RemoveNbsp.Exceptions.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.RemoveEmpty.RemoveNbsp.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.RemoveEmpty.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/AutoFormat.RemoveSpansWithoutAttributes.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.AllowImportant.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.AllowTricky.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.AllowedFonts.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.AllowedProperties.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.DefinitionRev.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.ForbiddenProperties.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.MaxImgLength.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.Proprietary.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/CSS.Trusted.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Cache.DefinitionImpl.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Cache.SerializerPath.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Cache.SerializerPermissions.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.AggressivelyFixLt.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.CollectErrors.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.ColorKeywords.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.ConvertDocumentToFragment.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.DirectLexLineNumberSyncInterval.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.EnableIDNA.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.Encoding.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.EscapeInvalidChildren.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.EscapeInvalidTags.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.EscapeNonASCIICharacters.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.HiddenElements.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.Language.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.LexerImpl.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.MaintainLineNumbers.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.NormalizeNewlines.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.RemoveInvalidImg.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.RemoveProcessingInstructions.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Core.RemoveScriptContents.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Filter.Custom.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Filter.ExtractStyleBlocks.Escaping.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Filter.ExtractStyleBlocks.Scope.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Filter.ExtractStyleBlocks.TidyImpl.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Filter.ExtractStyleBlocks.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Filter.YouTube.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Allowed.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.AllowedAttributes.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.AllowedComments.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.AllowedCommentsRegexp.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.AllowedElements.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.AllowedModules.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Attr.Name.UseCDATA.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.BlockWrapper.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.CoreModules.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.CustomDoctype.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.DefinitionID.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.DefinitionRev.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Doctype.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.FlashAllowFullScreen.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.ForbiddenAttributes.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.ForbiddenElements.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.MaxImgLength.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Nofollow.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Parent.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Proprietary.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.SafeEmbed.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.SafeIframe.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.SafeObject.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Strict.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.TargetBlank.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.TidyAdd.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.TidyLevel.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.TidyRemove.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.Trusted.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/HTML.XHTML.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Output.CommentScriptContents.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Output.FixInnerHTML.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Output.FlashCompat.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Output.Newline.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Output.SortAttr.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Output.TidyFormat.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/Test.ForceNoIconv.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.AllowedSchemes.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.Base.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.DefaultScheme.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.DefinitionID.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.DefinitionRev.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.Disable.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.DisableExternal.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.DisableExternalResources.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.DisableResources.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.Host.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.HostBlacklist.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.MakeAbsolute.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.Munge.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.MungeResources.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.MungeSecretKey.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.OverrideAllowedSchemes.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/URI.SafeIframeRegexp.txt create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ConfigSchema/schema/info.ini create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ContentSets.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Context.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Definition.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Memory.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Decorator/Template.php.in create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Null.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php create mode 100755 lib/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/README create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DefinitionCacheFactory.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Doctype.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/DoctypeRegistry.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ElementDef.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Encoder.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/EntityLookup.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/EntityLookup/entities.ser create mode 100644 lib/htmlpurifier/library/HTMLPurifier/EntityParser.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ErrorCollector.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/ErrorStruct.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Exception.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Filter.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Filter/ExtractStyleBlocks.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Filter/YouTube.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Generator.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLDefinition.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Bdo.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/CommonAttributes.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Edit.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Forms.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Hypertext.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Iframe.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Image.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Legacy.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/List.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Name.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Nofollow.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/NonXMLCommonAttributes.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Object.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Presentation.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Proprietary.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Ruby.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/SafeEmbed.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/SafeObject.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Scripting.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/StyleAttribute.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tables.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Target.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/TargetBlank.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Text.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Name.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Proprietary.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Strict.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Transitional.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/XHTML.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModule/XMLCommonAttributes.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/HTMLModuleManager.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/IDAccumulator.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Injector.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Injector/AutoParagraph.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Injector/DisplayLinkURI.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Injector/Linkify.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Injector/PurifierLinkify.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Injector/RemoveEmpty.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Injector/RemoveSpansWithoutAttributes.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Injector/SafeObject.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Language.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Language/classes/en-x-test.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Language/messages/en-x-test.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Language/messages/en-x-testmini.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Language/messages/en.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/LanguageFactory.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Length.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Lexer.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Lexer/DOMLex.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Lexer/DirectLex.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Lexer/PH5P.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/PercentEncoder.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Printer.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Printer/CSSDefinition.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Printer/ConfigForm.css create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Printer/ConfigForm.js create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Printer/ConfigForm.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Printer/HTMLDefinition.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/PropertyList.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/PropertyListIterator.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Strategy.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Strategy/Composite.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Strategy/Core.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Strategy/FixNesting.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Strategy/MakeWellFormed.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Strategy/RemoveForeignElements.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Strategy/ValidateAttributes.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/StringHash.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/StringHashParser.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/TagTransform.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/TagTransform/Font.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/TagTransform/Simple.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Token.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Token/Comment.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Token/Empty.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Token/End.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Token/Start.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Token/Tag.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/Token/Text.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/TokenFactory.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URI.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIDefinition.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIFilter.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternal.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIFilter/DisableExternalResources.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIFilter/DisableResources.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIFilter/HostBlacklist.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIFilter/MakeAbsolute.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIFilter/Munge.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIFilter/SafeIframe.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIParser.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIScheme.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIScheme/data.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIScheme/file.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIScheme/ftp.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIScheme/http.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIScheme/https.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIScheme/mailto.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIScheme/news.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URIScheme/nntp.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/URISchemeRegistry.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/UnitConverter.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/VarParser.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/VarParser/Flexible.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/VarParser/Native.php create mode 100644 lib/htmlpurifier/library/HTMLPurifier/VarParserException.php diff --git a/cache/htmlpurifier/.empty b/cache/htmlpurifier/.empty new file mode 100644 index 00000000..e69de29b diff --git a/debian/tt-rss-common.postinst b/debian/tt-rss-common.postinst index d12631f3..9c18ebd0 100644 --- a/debian/tt-rss-common.postinst +++ b/debian/tt-rss-common.postinst @@ -21,6 +21,10 @@ case "$1" in install -d -m775 -gwww-data /var/lock/tt-rss fi + if [ ! -d /var/cache/tt-rss/htmlpurifier ]; then + install -d -m775 -gwww-data /var/cache/tt-rss/htmlpurifier + fi + if [ ! -d /var/cache/tt-rss/magpie ]; then install -d -m775 -gwww-data /var/cache/tt-rss/magpie fi diff --git a/include/functions.php b/include/functions.php index 918192cd..5eb5b97a 100644 --- a/include/functions.php +++ b/include/functions.php @@ -100,6 +100,8 @@ require_once 'lib/pubsubhubbub/publisher.php'; + $purifier = false; + $tz_offset = -1; $utc_tz = new DateTimeZone('UTC'); $schema_version = false; @@ -2632,17 +2634,36 @@ } function sanitize($link, $str, $force_strip_tags = false, $owner = false, $site_url = false) { + global $purifier; + if (!$owner) $owner = $_SESSION["uid"]; $res = trim($str); if (!$res) return ''; - // TODO implement better HTML tag stripping and XSS protection + // create global Purifier object if needed + if (!$purifier) { + require_once 'lib/htmlpurifier/library/HTMLPurifier.auto.php'; + + $config = HTMLPurifier_Config::createDefault(); + + $allowed = "p,a[href],i,em,b,strong,code,pre,blockquote,br,img[src|alt|title|align|hspace],ul,ol,li,h1,h2,h3,h4,s,object[classid|type|id|name|width|height|codebase],param[name|value],table,tr,td,span[class]"; + + $config->set('HTML.SafeObject', true); + @$config->set('HTML', 'Allowed', $allowed); + $config->set('Output.FlashCompat', true); + $config->set('Attr.EnableID', true); + if (!defined('MOBILE_VERSION')) { + @$config->set('Cache', 'SerializerPath', CACHE_DIR . "/htmlpurifier"); + } else { + @$config->set('Cache', 'SerializerPath', "../" . CACHE_DIR . "/htmlpurifier"); + } + + $config->set('Filter.YouTube', true); - if (function_exists('filter_var')) { - $res = filter_var($res, FILTER_SANITIZE_STRING); + $purifier = new HTMLPurifier($config); } - $res = strip_tags($str, "