File "interdire-scripts.yaml"
Full path: /home/argothem/www/v4_old/plugins-dist/textwheel/wheels/spip/interdire-scripts.yaml
File size: 616 bytes
MIME-type: text/plain
Charset: utf-8
--- # Syntaxe des raccourcis SPIP, version 0.0.1
#
# Si on nomme une regle, elle devient surchargeable
securite-asp:
type: str
match: "<%"
replace: "<%"
securite-php:
type: str
match: "<?"
replace: "<?"
securite-script-php:
if_str: "<script"
type: preg
match: "/<(script\b[^>]+\blanguage\b[^\w>]+php\b)/UimsS"
replace: "<$1"
securite-js:
if_str: "<"
if_match: "/<(?:script|iframe|embed|object|img|image|body|bgsound|meta)/iS"
type: all
replace: "echappe_js"
is_callback: Y
securite-base:
if_str: "<base"
type: preg
match: "/<base\b/iS"
replace: "<base"