Skip to content

Commit

Permalink
MQE-359
Browse files Browse the repository at this point in the history
Removed addslashes, added replace of " to \" since " is read in a " via the xml parser.
  • Loading branch information
KevinBKozan committed Sep 12, 2017
1 parent bd0996a commit c7c7bc9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,8 @@ private function wrapWithSingleQuotes($input)
if (empty($input)) {
return '';
}
$input = addslashes($input);
//Only replace " with \" so that it doesn't break outer string.
$input = str_replace('"', '\"', $input);
return sprintf('"%s"', $input);
}

Expand Down

0 comments on commit c7c7bc9

Please sign in to comment.