__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/*
WARNING: THIS MODULE IS EXTREMELY DANGEROUS AS IT ENABLES INLINE SCRIPTING
INSIDE HTML PURIFIER DOCUMENTS. USE ONLY WITH TRUSTED USER INPUT!!!
*/
/**
* XHTML 1.1 Scripting module, defines elements that are used to contain
* information pertaining to executable scripts or the lack of support
* for executable scripts.
* @note This module does not contain inline scripting elements
*/
class HTMLPurifier_HTMLModule_Scripting extends HTMLPurifier_HTMLModule
{
/**
* @type string
*/
public $name = 'Scripting';
/**
* @type array
*/
public $elements = array('script', 'noscript');
/**
* @type array
*/
public $content_sets = array('Block' => 'script | noscript', 'Inline' => 'script | noscript');
/**
* @type bool
*/
public $safe = false;
/**
* @param HTMLPurifier_Config $config
*/
public function setup($config)
{
// TODO: create custom child-definition for noscript that
// auto-wraps stray #PCDATA in a similar manner to
// blockquote's custom definition (we would use it but
// blockquote's contents are optional while noscript's contents
// are required)
// TODO: convert this to new syntax, main problem is getting
// both content sets working
// In theory, this could be safe, but I don't see any reason to
// allow it.
$this->info['noscript'] = new HTMLPurifier_ElementDef();
$this->info['noscript']->attr = array(0 => array('Common'));
$this->info['noscript']->content_model = 'Heading | List | Block';
$this->info['noscript']->content_model_type = 'required';
$this->info['script'] = new HTMLPurifier_ElementDef();
$this->info['script']->attr = array(
'defer' => new HTMLPurifier_AttrDef_Enum(array('defer')),
'src' => new HTMLPurifier_AttrDef_URI(true),
'type' => new HTMLPurifier_AttrDef_Enum(array('text/javascript'))
);
$this->info['script']->content_model = '#PCDATA';
$this->info['script']->content_model_type = 'optional';
$this->info['script']->attr_transform_pre[] =
$this->info['script']->attr_transform_post[] =
new HTMLPurifier_AttrTransform_ScriptRequired();
}
}
// vim: et sw=4 sts=4
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Tidy | Folder | 0777 |
|
|
| Bdo.php | File | 1 KB | 0777 |
|
| CommonAttributes.php | File | 722 B | 0777 |
|
| Edit.php | File | 1.4 KB | 0777 |
|
| Forms.php | File | 5.7 KB | 0777 |
|
| Hypertext.php | File | 996 B | 0777 |
|
| Iframe.php | File | 1.15 KB | 0777 |
|
| Image.php | File | 1.36 KB | 0777 |
|
| Legacy.php | File | 5.72 KB | 0777 |
|
| List.php | File | 1.86 KB | 0777 |
|
| Name.php | File | 669 B | 0777 |
|
| Nofollow.php | File | 507 B | 0777 |
|
| NonXMLCommonAttributes.php | File | 354 B | 0777 |
|
| Object.php | File | 1.49 KB | 0777 |
|
| Presentation.php | File | 1.38 KB | 0777 |
|
| Proprietary.php | File | 995 B | 0777 |
|
| Ruby.php | File | 1.03 KB | 0777 |
|
| SafeEmbed.php | File | 1.07 KB | 0777 |
|
| SafeObject.php | File | 1.9 KB | 0777 |
|
| SafeScripting.php | File | 1.23 KB | 0777 |
|
| Scripting.php | File | 2.28 KB | 0777 |
|
| StyleAttribute.php | File | 780 B | 0777 |
|
| Tables.php | File | 2.3 KB | 0777 |
|
| Target.php | File | 599 B | 0777 |
|
| TargetBlank.php | File | 522 B | 0777 |
|
| TargetNoopener.php | File | 516 B | 0777 |
|
| TargetNoreferrer.php | File | 526 B | 0777 |
|
| Text.php | File | 3.35 KB | 0777 |
|
| Tidy.php | File | 7.08 KB | 0777 |
|
| XMLCommonAttributes.php | File | 352 B | 0777 |
|