File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,8 @@ - (void)_dispatchMessage:(WVJBMessage*)message {
135
135
messageJSON = [messageJSON stringByReplacingOccurrencesOfString: @" \n " withString: @" \\ n" ];
136
136
messageJSON = [messageJSON stringByReplacingOccurrencesOfString: @" \r " withString: @" \\ r" ];
137
137
messageJSON = [messageJSON stringByReplacingOccurrencesOfString: @" \f " withString: @" \\ f" ];
138
+ messageJSON = [messageJSON stringByReplacingOccurrencesOfString: @" \u2028 " withString: @" \\ u2028" ];
139
+ messageJSON = [messageJSON stringByReplacingOccurrencesOfString: @" \u2029 " withString: @" \\ u2029" ];
138
140
139
141
NSString * javascriptCommand = [NSString stringWithFormat: @" WebViewJavascriptBridge._handleMessageFromObjC('%@ ');" , messageJSON];
140
142
if ([[NSThread currentThread ] isMainThread ]) {
You can’t perform that action at this time.
0 commit comments