Skip to content

Commit cb42040

Browse files
authored
T1265009: Research Incomplete string escaping or encoding (#28488)
1 parent 06651cd commit cb42040

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/devextreme/js/ui/shared/accessibility.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function getActiveAccessibleElements(ariaLabel, viewElement) {
7171
let $activeElements;
7272

7373
if(ariaLabel) {
74-
const escapedAriaLabel = ariaLabel?.replace(/"/g, '\\"');
74+
const escapedAriaLabel = ariaLabel?.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
7575
$activeElements = $viewElement.find(`[aria-label="${escapedAriaLabel}"][tabindex]`);
7676
} else {
7777
$activeElements = $viewElement.find('[tabindex]');

0 commit comments

Comments
 (0)