|
|
@@ -1211,7 +1211,11 @@ public class MainActivity extends AppCompatActivity implements RAWebView.WebView
|
|
|
}
|
|
|
String user = ApexCRMApp.sharedCRM().getUser();
|
|
|
String password = ApexCRMApp.sharedCRM().getPassword();
|
|
|
- String js = String.format("javascript:showPageForNotification(%s, %s, %d)", user, password, notificationId);
|
|
|
+
|
|
|
+ user = RAUtil.ra_stringByEscapingForJavascriptWithDelimiter(user,'\'',true);
|
|
|
+ password = RAUtil.ra_stringByEscapingForJavascriptWithDelimiter(password,'\'',true);
|
|
|
+
|
|
|
+ String js = String.format("showPageForNotification(%s, %s, %d)", user, password, notificationId);
|
|
|
mWebView.evaluateJavascript(js, new ValueCallback<String>() {
|
|
|
@Override
|
|
|
public void onReceiveValue(String value) {
|