Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scriptlet argument escaping #3588

Merged
merged 6 commits into from
Nov 10, 2023
Merged

Conversation

chrmod
Copy link
Member

@chrmod chrmod commented Nov 9, 2023

Scriptlets comming from CDN maybe have escaped arguments for sake of backward compatibility with older adblocker engines - this makes them hard to read and debug, so they should be unescaped before injection.

Scriptlets arguments that have escape sequences require the escape charactes to be escaped, otherwise when injected they would be evaluated and the scriptlet meaning wont be the same.

Scriptlets comming from CDN maybe have escaped arguments for sake of backward
compatibility with older adblocker engines - this makes them hard to
read and debug, so they should be unescaped before injection.

Scriptlets arguments that have escape sequences require the escape
charactes to be escaped, otherwise when injected they would be evaluated
and the scriptlet meaning wont be the same.
@chrmod chrmod force-pushed the scriptlet-argument-escaping branch from 64661f9 to 86d9dc6 Compare November 9, 2023 13:45
@chrmod chrmod force-pushed the scriptlet-argument-escaping branch from d33930c to cb90d99 Compare November 9, 2023 20:45
@chrmod chrmod marked this pull request as ready for review November 9, 2023 20:45
@chrmod chrmod requested a review from remusao as a code owner November 9, 2023 20:45
@remusao remusao added the PR: Bug Fix 🐛 Increment patch version when merged label Nov 9, 2023
@chrmod chrmod force-pushed the scriptlet-argument-escaping branch from cb90d99 to ca80a60 Compare November 9, 2023 21:48
@philipp-classen philipp-classen merged commit 684dba9 into master Nov 10, 2023
3 checks passed
@philipp-classen philipp-classen deleted the scriptlet-argument-escaping branch November 10, 2023 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Bug Fix 🐛 Increment patch version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants