mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 581980 - allow trailing semi-colon in CSP, r=bsterne, a=jst
This commit is contained in:
parent
058ab40bdb
commit
6071791d22
@ -185,6 +185,8 @@ CSPRep.fromString = function(aStr, self) {
|
||||
directive:
|
||||
for each(var dir in dirs) {
|
||||
dir = dir.trim();
|
||||
if (dir.length < 1) continue;
|
||||
|
||||
var dirname = dir.split(/\s+/)[0];
|
||||
var dirvalue = dir.substring(dirname.length).trim();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user