Bug 581980 - allow trailing semi-colon in CSP, r=bsterne, a=jst

This commit is contained in:
Sid Stamm 2010-08-25 08:36:44 -07:00
parent 058ab40bdb
commit 6071791d22

View File

@ -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();