Skip to content

Fix: Escape backslashes in escapePath - #11226

Merged
slax57 merged 1 commit into
masterfrom
fix-escape-path-escaping
Mar 31, 2026
Merged

slax57 merged 1 commit into
masterfrom
fix-escape-path-escaping

Conversation

@WiXSL

@WiXSL WiXSL commented Mar 31, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • make escapePath escape backslashes before escaping parentheses
  • add focused regression tests

Why

GitHub code scanning reports alert #1 (Incomplete string escaping or encoding) on escapePath.

The previous implementation escaped parentheses but left backslashes untouched.

Testing

  • yarn test-unit --runTestsByPath packages/ra-core/src/util/escapePath.spec.ts

@slax57 slax57 added this to the 5.14.6 milestone Mar 31, 2026
@slax57
slax57 merged commit 92b4c55 into master Mar 31, 2026
15 checks passed
@slax57
slax57 deleted the fix-escape-path-escaping branch March 31, 2026 14:37
@slax57 slax57 changed the title Escape backslashes in escapePath Fix: Escape backslashes in escapePath Mar 31, 2026

This branch was successfully deployed

1 active deployment
Preview – react-admin-storybook — a5083741 Deployed Mar 31, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RFR Ready For Review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants