[SPIP] +spip v3.0.17
[lhc/web/clavette_www.git] / www / plugins-dist / textwheel / wheels / spip / interdire-scripts.yaml
diff --git a/www/plugins-dist/textwheel/wheels/spip/interdire-scripts.yaml b/www/plugins-dist/textwheel/wheels/spip/interdire-scripts.yaml
new file mode 100644 (file)
index 0000000..790f34d
--- /dev/null
@@ -0,0 +1,31 @@
+--- # 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"