Skip to content

Commit c7c7bc9

Browse files
committed
MQE-359
Removed addslashes, added replace of " to \" since " is read in a " via the xml parser.
1 parent bd0996a commit c7c7bc9

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
@@ -995,7 +995,8 @@ private function wrapWithSingleQuotes($input)
995995
if (empty($input)) {
996996
return '';
997997
}
998-
$input = addslashes($input);
998+
//Only replace " with \" so that it doesn't break outer string.
999+
$input = str_replace('"', '\"', $input);
9991000
return sprintf('"%s"', $input);
10001001
}
10011002

0 commit comments

Comments
 (0)