1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spip_ynh.git synced 2024-09-03 20:25:59 +02:00
spip_ynh/sources/plugins-dist/textwheel/wheels/spip/interdire-scripts.yaml
2015-04-28 17:10:23 +02:00

31 lines
544 B
YAML

--- # Syntaxe des raccourcis SPIP, version 0.0.1
#
# Si on nomme une regle, elle devient surchargeable
securite-asp:
type: str
match: "<%"
replace: "&lt;%"
securite-php:
type: str
match: "<?"
replace: "&lt;?"
securite-script-php:
if_str: "<script"
type: preg
match: "/<(script\b[^>]+\blanguage\b[^\w>]+php\b)/UimsS"
replace: "&lt;$1"
securite-js:
if_str: "<script"
type: all
replace: "echappe_js"
is_callback: Y
securite-base:
if_str: "<base"
type: preg
match: "/<base\b/iS"
replace: "&lt;base"