messere1 opened a new pull request, #1914:
URL: https://github.com/apache/rocketmq-dashboard/pull/1914

   ## Summary
   - interpolate translation parameters as literal text
   - replace every matching placeholder without invoking JavaScript 
replacement-string semantics
   - add regression coverage for resource names containing `$&`
   
   ## Root cause
   `String.replace(token, String(value))` interprets `$&`, ``$` ``, and `$'` in 
parameter values as replacement patterns. This can corrupt valid Topic, 
consumer group, certificate, and other user-controlled names displayed through 
translated messages.
   
   Closes #1913
   
   ## Validation
   - `npm run test -- --run src/i18n/__tests__/LangContext.test.tsx` (8 passed)
   - focused ESLint on both changed files
   - `npm run build`
   - `git diff --check`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to