403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Old Sites/enoikio/core/modules/editor/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/enoikio/core/modules/editor/src/EditorXssFilterInterface.php
<?php

namespace Drupal\editor;

use Drupal\filter\FilterFormatInterface;

/**
 * Defines an interface for text editor XSS (Cross-site scripting) filters.
 */
interface EditorXssFilterInterface {

  /**
   * Filters HTML to prevent XSS attacks when a user edits it in a text editor.
   *
   * Should filter as minimally as possible, only to remove XSS attack vectors.
   *
   * Is only called when:
   * - loading a non-XSS-safe text editor for a $format that contains a filter
   *   preventing XSS attacks (a FilterInterface::TYPE_HTML_RESTRICTOR filter):
   *   if the output is safe, it should also be safe to edit.
   * - loading a non-XSS-safe text editor for a $format that doesn't contain a
   *   filter preventing XSS attacks, but we're switching from a previous text
   *   format ($original_format is not NULL) that did prevent XSS attacks: if
   *   the output was previously safe, it should be safe to switch to another
   *   text format and edit.
   *
   * @param string $html
   *   The HTML to be filtered.
   * @param \Drupal\filter\FilterFormatInterface $format
   *   The text format configuration entity. Provides context based upon which
   *   one may want to adjust the filtering.
   * @param \Drupal\filter\FilterFormatInterface|null $original_format
   *   (optional) The original text format configuration entity (when switching
   *   text formats/editors). Also provides context based upon which one may
   *   want to adjust the filtering.
   *
   * @return string
   *   The filtered HTML that cannot cause any XSSes anymore.
   */
  public static function filterXss($html, FilterFormatInterface $format, FilterFormatInterface $original_format = NULL);

}

Youez - 2016 - github.com/yon3zu
LinuXploit