Loading services/java/com/android/server/NetworkManagementService.java +5 −2 Original line number Original line Diff line number Diff line Loading @@ -504,6 +504,9 @@ class NetworkManagementService extends INetworkManagementService.Stub { } } private String convertQuotedString(String s) { private String convertQuotedString(String s) { if (s == null) { return s; } /* Replace \ with \\, then " with \" and add quotes at end */ /* Replace \ with \\, then " with \" and add quotes at end */ return '"' + s.replaceAll("\\\\","\\\\\\\\").replaceAll("\"","\\\\\"") + '"'; return '"' + s.replaceAll("\\\\","\\\\\\\\").replaceAll("\"","\\\\\"") + '"'; } } Loading Loading
services/java/com/android/server/NetworkManagementService.java +5 −2 Original line number Original line Diff line number Diff line Loading @@ -504,6 +504,9 @@ class NetworkManagementService extends INetworkManagementService.Stub { } } private String convertQuotedString(String s) { private String convertQuotedString(String s) { if (s == null) { return s; } /* Replace \ with \\, then " with \" and add quotes at end */ /* Replace \ with \\, then " with \" and add quotes at end */ return '"' + s.replaceAll("\\\\","\\\\\\\\").replaceAll("\"","\\\\\"") + '"'; return '"' + s.replaceAll("\\\\","\\\\\\\\").replaceAll("\"","\\\\\"") + '"'; } } Loading