Skip to content

Commit 3ef29c8

Browse files
KevinBKozanjilu1
authored andcommitted
MQE-359
Removed addslashes, added replace of " to \" since " is read in a " via the xml parser. (cherry picked from commit c7c7bc9)
1 parent 596f419 commit 3ef29c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,8 @@ private function wrapWithSingleQuotes($input)
996996
if (empty($input)) {
997997
return '';
998998
}
999-
$input = addslashes($input);
999+
//Only replace " with \" so that it doesn't break outer string.
1000+
$input = str_replace('"', '\"', $input);
10001001
return sprintf('"%s"', $input);
10011002
}
10021003

0 commit comments

Comments
 (0)