Commit 52c0f5df authored by mattm@chromium.org's avatar mattm@chromium.org

Don't add invalid URLs to MalwareDetails resources_ map.

BUG=173986


Review URL: https://chromiumcodereview.appspot.com/12227003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182082 0039d316-1c4b-4281-b951-d872f2087c98
parent 7b394105
......@@ -129,7 +129,7 @@ void MalwareDetails::AddUrl(const GURL& url,
const GURL& parent,
const std::string& tagname,
const std::vector<GURL>* children) {
if (!IsPublicUrl(url))
if (!url.is_valid() || !IsPublicUrl(url))
return;
// Find (or create) the resource for the url.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment