Skip to content

Commit

Permalink
T1265009: Research Incomplete string escaping or encoding (#28489)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raushen authored Dec 4, 2024
1 parent d4a9b2c commit 7774284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/devextreme/js/ui/shared/accessibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function getActiveAccessibleElements(ariaLabel, viewElement) {
let $activeElements;

if(ariaLabel) {
const escapedAriaLabel = ariaLabel?.replace(/"/g, '\\"');
const escapedAriaLabel = ariaLabel?.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
$activeElements = $viewElement.find(`[aria-label="${escapedAriaLabel}"][tabindex]`);
} else {
$activeElements = $viewElement.find('[tabindex]');
Expand Down

0 comments on commit 7774284

Please sign in to comment.