Skip to content

Commit 1e3439a

Browse files
committed
fix typo, add more tests
1 parent 28ab763 commit 1e3439a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/CSPBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ public static function fromFile(string $filename = ''): self
350350
/**
351351
* Factory method - create a new CSPBuilder object from an existing CSP header
352352
*
353-
* @param string $headre
353+
* @param string $header
354354
* @return self
355355
* @throws Exception
356356
*/

test/ParserTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,9 @@ public static function cspDirectivesProvider(): \Generator
102102
"plugin-types application/x-java-applet",
103103
"plugin-types application/x-java-applet"
104104
];
105+
yield [
106+
"form-action 'none'; sandbox allow-scripts; style-src-attr 'none'; worker-src https://example.com/",
107+
"form-action 'none'; sandbox allow-scripts; style-src-attr 'none'; worker-src https://example.com/"
108+
];
105109
}
106110
}

0 commit comments

Comments
 (0)