Skip to content

Commit

Permalink
Merge branch '4.11' into 4.12-release
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Nov 21, 2022
2 parents 5f10465 + f2974d9 commit 7f72778
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- '3'
- '4.11'
- '4.12'
- '5'
jobs:
build:
Expand Down
10 changes: 10 additions & 0 deletions en/02_Developer_Guides/05_Extending/04_Shortcodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ class Page extends SiteTree
}
```

[warning]
Note that the `$arguments` parameter potentially contains any arbitrary key/value pairs the user has chosen to include.
It is strongly recommended that you don't directly convert this array into a list of attributes for your final HTML markup
as that could lead to XSS vulnerabilities in your project.

If you want to use the `$arguments` parameter as a list of attributes for your final HTML markup, it is strongly recommended that you
pass the array through a filter of allowed arguments using [array_filter()](https://www.php.net/manual/en/function.array-filter.php)
or similar.
[/warning]

These parameters are passed to the `MyShortCodeMethod` callback:

- Any parameters attached to the shortcode as an associative array (keys are lower-case).
Expand Down

0 comments on commit 7f72778

Please sign in to comment.