Merge "Fix for 2585858, load invalid urls." into froyo
This commit is contained in:
committed by
Android (Google) Code Review
commit
d503a1524a
@@ -102,8 +102,9 @@ class FrameLoader {
|
|||||||
com.android.internal.R.string.httpErrorBadUrl));
|
com.android.internal.R.string.httpErrorBadUrl));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
// Make sure it is correctly URL encoded before sending the request
|
// Make sure the host part of the url is correctly
|
||||||
if (!URLUtil.verifyURLEncoding(url)) {
|
// encoded before sending the request
|
||||||
|
if (!URLUtil.verifyURLEncoding(mListener.host())) {
|
||||||
mListener.error(EventHandler.ERROR_BAD_URL,
|
mListener.error(EventHandler.ERROR_BAD_URL,
|
||||||
mListener.getContext().getString(
|
mListener.getContext().getString(
|
||||||
com.android.internal.R.string.httpErrorBadUrl));
|
com.android.internal.R.string.httpErrorBadUrl));
|
||||||
|
|||||||
Reference in New Issue
Block a user