Version 1
[yaffs-website] / web / core / modules / block / tests / modules / block_test / src / Plugin / Block / TestXSSTitleBlock.php
diff --git a/web/core/modules/block/tests/modules/block_test/src/Plugin/Block/TestXSSTitleBlock.php b/web/core/modules/block/tests/modules/block_test/src/Plugin/Block/TestXSSTitleBlock.php
new file mode 100644 (file)
index 0000000..3b67914
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+
+namespace Drupal\block_test\Plugin\Block;
+
+/**
+ * Provides a block to test XSS in title.
+ *
+ * @Block(
+ *   id = "test_xss_title",
+ *   admin_label = "<script>alert('XSS subject');</script>"
+ * )
+ */
+class TestXSSTitleBlock extends TestCacheBlock {
+}