From a1854c8b47315651e4f2e47124ddf9d4c4374fdd Mon Sep 17 00:00:00 2001 From: "David A. Wheeler" Date: Wed, 5 Feb 2025 12:39:08 -0500 Subject: [PATCH] Add copyright and license statements to each .js file Make the license clearer per file. Signed-off-by: David A. Wheeler --- docs/labs/argument-injection.js | 3 +++ docs/labs/assert.js | 3 +++ docs/labs/checker.js | 2 +- docs/labs/conversion.js | 3 +++ docs/labs/csp1.js | 3 +++ docs/labs/deserialization.js | 3 +++ docs/labs/format-strings.js | 3 +++ docs/labs/free.js | 3 +++ docs/labs/handling-errors.js | 3 +++ docs/labs/hardcoded.js | 3 +++ docs/labs/hello.js | 3 +++ docs/labs/input1.js | 3 +++ docs/labs/input2.js | 3 +++ docs/labs/oob1.js | 3 +++ docs/labs/redos.js | 3 +++ docs/labs/regex0.js | 3 +++ docs/labs/regex1.js | 3 +++ docs/labs/shell-injection.js | 3 +++ docs/labs/sql-injection.js | 3 +++ docs/labs/template.js | 3 +++ docs/labs/xss.js | 3 +++ 21 files changed, 61 insertions(+), 1 deletion(-) diff --git a/docs/labs/argument-injection.js b/docs/labs/argument-injection.js index 4d5e1f21..74e9d18c 100644 --- a/docs/labs/argument-injection.js +++ b/docs/labs/argument-injection.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/assert.js b/docs/labs/assert.js index 1aa6e438..04a81d49 100644 --- a/docs/labs/assert.js +++ b/docs/labs/assert.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/checker.js b/docs/labs/checker.js index a70e555e..1cf8fc5a 100644 --- a/docs/labs/checker.js +++ b/docs/labs/checker.js @@ -1,6 +1,6 @@ // lab_checker - check and report if lab attempt is correct -// Copyright (C) Open Source Security Foundation (OpenSSF) +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. // SPDX-License-Identifier: MIT // See create_labs.md for more information. diff --git a/docs/labs/conversion.js b/docs/labs/conversion.js index 215e5186..5e1982d7 100644 --- a/docs/labs/conversion.js +++ b/docs/labs/conversion.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/csp1.js b/docs/labs/csp1.js index 2edf15af..b73deade 100644 --- a/docs/labs/csp1.js +++ b/docs/labs/csp1.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/deserialization.js b/docs/labs/deserialization.js index a9427d16..7162d9b6 100644 --- a/docs/labs/deserialization.js +++ b/docs/labs/deserialization.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { definitions: [ diff --git a/docs/labs/format-strings.js b/docs/labs/format-strings.js index bba84e63..aab008d1 100644 --- a/docs/labs/format-strings.js +++ b/docs/labs/format-strings.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/free.js b/docs/labs/free.js index df4ab7d3..30772dd5 100644 --- a/docs/labs/free.js +++ b/docs/labs/free.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/handling-errors.js b/docs/labs/handling-errors.js index c62fa535..a8c580c2 100644 --- a/docs/labs/handling-errors.js +++ b/docs/labs/handling-errors.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/hardcoded.js b/docs/labs/hardcoded.js index 8cea1d22..22c93cb2 100644 --- a/docs/labs/hardcoded.js +++ b/docs/labs/hardcoded.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/hello.js b/docs/labs/hello.js index de447443..1af8df83 100644 --- a/docs/labs/hello.js +++ b/docs/labs/hello.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/input1.js b/docs/labs/input1.js index 5ccd121a..7fb0d918 100644 --- a/docs/labs/input1.js +++ b/docs/labs/input1.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/input2.js b/docs/labs/input2.js index c861d26c..1fe8409e 100644 --- a/docs/labs/input2.js +++ b/docs/labs/input2.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/oob1.js b/docs/labs/oob1.js index 46ad5867..39b53139 100644 --- a/docs/labs/oob1.js +++ b/docs/labs/oob1.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/redos.js b/docs/labs/redos.js index b858fccb..d8ee21d2 100644 --- a/docs/labs/redos.js +++ b/docs/labs/redos.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/regex0.js b/docs/labs/regex0.js index b2ff8981..554f9e57 100644 --- a/docs/labs/regex0.js +++ b/docs/labs/regex0.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { // Note: Regular expressions are preprocessed specially in this lab. diff --git a/docs/labs/regex1.js b/docs/labs/regex1.js index 7213ab2c..0b07dc3f 100644 --- a/docs/labs/regex1.js +++ b/docs/labs/regex1.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/shell-injection.js b/docs/labs/shell-injection.js index 748332c5..d0dda9cd 100644 --- a/docs/labs/shell-injection.js +++ b/docs/labs/shell-injection.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/sql-injection.js b/docs/labs/sql-injection.js index bfe75f01..27ac8c65 100644 --- a/docs/labs/sql-injection.js +++ b/docs/labs/sql-injection.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/template.js b/docs/labs/template.js index ba4732c7..0e3cec78 100644 --- a/docs/labs/template.js +++ b/docs/labs/template.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [ diff --git a/docs/labs/xss.js b/docs/labs/xss.js index 23a6f406..8cda6d01 100644 --- a/docs/labs/xss.js +++ b/docs/labs/xss.js @@ -1,3 +1,6 @@ +// Copyright (C) Open Source Security Foundation (OpenSSF) and its contributors. +// SPDX-License-Identifier: MIT + info = { hints: [