We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 596f419 commit 3ef29c8Copy full SHA for 3ef29c8
src/Magento/FunctionalTestingFramework/Util/TestGenerator.php
@@ -996,7 +996,8 @@ private function wrapWithSingleQuotes($input)
996
if (empty($input)) {
997
return '';
998
}
999
- $input = addslashes($input);
+ //Only replace " with \" so that it doesn't break outer string.
1000
+ $input = str_replace('"', '\"', $input);
1001
return sprintf('"%s"', $input);
1002
1003
0 commit comments