Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Unified Diff: Source/core/frame/csp/CSPSourceList.cpp

Issue 470723006: Disallow an empty host in a CSP host-source directive (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/http/tests/security/contentSecurityPolicy/source-list-parsing-07-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/csp/CSPSourceList.cpp
diff --git a/Source/core/frame/csp/CSPSourceList.cpp b/Source/core/frame/csp/CSPSourceList.cpp
index a102ca4726a93ebb8c1dfaf20d72083622488433..9cf7753faf3a5a96483740769d60a0805afa940f 100644
--- a/Source/core/frame/csp/CSPSourceList.cpp
+++ b/Source/core/frame/csp/CSPSourceList.cpp
@@ -212,7 +212,7 @@ bool CSPSourceList::parseSource(const UChar* begin, const UChar* end, String& sc
|| !skipExactly<UChar>(position, end, '/'))
return false;
if (position == end)
- return true;
+ return false;
beginHost = position;
skipWhile<UChar, isNotColonOrSlash>(position, end);
}
« no previous file with comments | « LayoutTests/http/tests/security/contentSecurityPolicy/source-list-parsing-07-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698