Skip to content

Commit

Permalink
Escape the single quote in the quote function to support single quote…
Browse files Browse the repository at this point in the history
… in son data.
  • Loading branch information
spelletier committed Jan 7, 2016
1 parent 5fac48d commit f056609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Frameworks/Ajax/Ajax/Sources/er/ajax/AjaxUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class AjaxUtils {
* @return the quoted value or "null"
*/
public static String quote(String value) {
return value == null ? "null" : "'" + value + "'";
return value == null ? "null" : "'" + value.replaceAll("'", "\\\\'") + "'";
}

/**
Expand Down

0 comments on commit f056609

Please sign in to comment.