Skip to content

Encode quoted ajax parameter names and values (4.1.x) - #1154

Open
melloware wants to merge 1 commit into
apache:4.1.xfrom
melloware:ajax-param-encoding-4.1.x
Open

melloware wants to merge 1 commit into
apache:4.1.xfrom
melloware:ajax-param-encoding-4.1.x

Conversation

@melloware

Copy link
Copy Markdown
Contributor

Encode f:param / ClientBehaviorContext.Parameter names and values with JavascriptUtils.encodeString when they are written as quoted string literals into the generated ajax script, and extend encodeString to also encode <, >, &, U+2028/U+2029 and control characters.

Values that are not quoted (e.g. onevent/onerror handlers) are unchanged.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant