mirror of
https://github.com/YunoHost-Apps/spip_ynh.git
synced 2024-09-03 20:25:59 +02:00
31 lines
544 B
YAML
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: "<%"
|
|
|
|
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: "<script"
|
|
type: all
|
|
replace: "echappe_js"
|
|
is_callback: Y
|
|
|
|
securite-base:
|
|
if_str: "<base"
|
|
type: preg
|
|
match: "/<base\b/iS"
|
|
replace: "<base"
|