Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 351e518b authored by Selim Gurun's avatar Selim Gurun Committed by Android Git Automerger
Browse files

am e990e359: Add a delimiter between scheme and host

* commit 'e990e359':
  Add a delimiter between scheme and host
parents ed3ba97f e990e359
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ class BrowserFrame extends Handler {
     * request's LoadListener
     */
    private final static int MAX_OUTSTANDING_REQUESTS = 300;

    private final static String SCHEME_HOST_DELIMITER = "://";
    private final CallbackProxy mCallbackProxy;
    private final WebSettingsClassic mSettings;
    private final Context mContext;
@@ -498,7 +498,8 @@ class BrowserFrame extends Handler {
                            .getCurrentItem();
                    if (item != null) {
                        WebAddress uri = new WebAddress(item.getUrl());
                        String schemePlusHost = uri.getScheme() + uri.getHost();
                        String schemePlusHost = uri.getScheme() + SCHEME_HOST_DELIMITER +
                                uri.getHost();
                        String[] up = mDatabase.getUsernamePassword(
                                schemePlusHost);
                        if (up != null && up[0] != null) {
@@ -815,7 +816,7 @@ class BrowserFrame extends Handler {
            }
            WebAddress uri = new WebAddress(mCallbackProxy
                    .getBackForwardList().getCurrentItem().getUrl());
            String schemePlusHost = uri.getScheme() + uri.getHost();
            String schemePlusHost = uri.getScheme() + SCHEME_HOST_DELIMITER + uri.getHost();
            // Check to see if the username & password appear in
            // the post data (there could be another form on the
            // page and that was posted instead.