Compare commits

37 Commits

Author SHA1 Message Date
renovate[bot]
8d2dd2c29d chore(deps): update squizlabs/php_codesniffer to 3.13.2 (#35) 2025-06-19 00:16:50 +03:00
renovate[bot]
8643c5dcc4 chore(deps): update squizlabs/php_codesniffer to 3.13.1 (#34)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-13 12:53:16 +03:00
renovate[bot]
97770ec4e4 chore(deps): update squizlabs/php_codesniffer to 3.13.0 (#33) 2025-05-11 10:21:20 +03:00
renovate[bot]
18c36ab8c7 chore(deps): update squizlabs/php_codesniffer to 3.12.2 (#32)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-13 13:01:07 +03:00
renovate[bot]
c08dddca13 chore(deps): update squizlabs/php_codesniffer to 3.12.1 (#31)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-05 11:02:16 +03:00
renovate[bot]
125bf37b4b chore(deps): update squizlabs/php_codesniffer to 3.12.0 (#30)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-19 10:15:41 +02:00
renovate[bot]
2470718d88 chore(deps): pin dependencies (#29) 2025-02-09 18:21:00 +02:00
renovate[bot]
fe0809acf3 chore(deps): update squizlabs/php_codesniffer to 3.11.3 (#28)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 12:18:34 +02:00
renovate[bot]
ebff93e3d7 chore(deps): update squizlabs/php_codesniffer to 3.11.2 (#27)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-12 00:23:58 +02:00
renovate[bot]
2b4bfb5ecd chore(deps): update squizlabs/php_codesniffer to 3.11.1 (#26)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-16 14:34:04 +02:00
renovate[bot]
92928a0c2d chore(deps): update squizlabs/php_codesniffer to 3.11.0 (#25) 2024-11-12 23:11:13 +02:00
renovate[bot]
62e1356acb chore(deps): update squizlabs/php_codesniffer to 3.10.3 (#24) 2024-09-19 08:40:01 +03:00
renovate[bot]
c69546d936 chore(deps): update squizlabs/php_codesniffer to 3.10.2 (#23)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-23 04:29:17 +03:00
Ismo Vuorinen
735d04607f chore(meta): update renovate.json 2024-07-23 04:10:55 +03:00
renovate[bot]
c2f238488b chore(deps): update dependency squizlabs/php_codesniffer to v3.10.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-23 00:41:15 +00:00
renovate[bot]
3d67b3ab3d chore(deps): update dependency squizlabs/php_codesniffer to v3.10.0 (#19)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-22 08:50:07 +03:00
renovate[bot]
5dbe4076b8 chore(deps): update dependency squizlabs/php_codesniffer to v3.9.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-24 04:16:55 +00:00
renovate[bot]
d1e77aebd9 chore(deps): update dependency squizlabs/php_codesniffer to v3.9.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-01 01:19:23 +00:00
renovate[bot]
ee3e135627 chore(deps): update dependency squizlabs/php_codesniffer to v3.9.0 (#16)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-17 13:23:48 +02:00
renovate[bot]
3335d0456c chore(deps): update actions/cache action to v4 (#15) 2024-01-18 02:02:57 +02:00
renovate[bot]
8af7d87faf chore(deps): update dependency squizlabs/php_codesniffer to v3.8.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-12 00:13:54 +00:00
renovate[bot]
b5b95fa2e7 chore(deps): update dependency squizlabs/php_codesniffer to v3.8.0 (#13)
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-09 06:08:57 +02:00
3cddb4e7f5 Merge pull request #12 from ivuorinen/renovate/actions-checkout-4.x 2023-09-05 16:26:16 +03:00
renovate[bot]
c280d3f46d chore(deps): update actions/checkout action to v4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-04 22:15:23 +00:00
renovate[bot]
21e99b99bb chore(deps): update dependency squizlabs/php_codesniffer to v3.7.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-12 22:06:28 +00:00
eaa47530f1 Update renovate.json 2022-11-28 16:42:01 +02:00
0acec26cc5 Merge pull request #10 from ivuorinen/renovate/squizlabs-php_codesniffer-3.x 2022-06-19 22:25:22 +03:00
renovate[bot]
a5d09cf9c2 Update dependency squizlabs/php_codesniffer to v3.7.1 2022-06-18 16:51:59 +00:00
dee6c1791c Merge pull request #9 from ivuorinen/renovate/actions-cache-3.x 2022-03-23 10:22:44 +02:00
Renovate Bot
dfdede56e1 Update actions/cache action to v3 2022-03-21 09:57:08 +00:00
1b2de7835c Merge pull request #8 from ivuorinen/renovate/actions-checkout-3.x
Update actions/checkout action to v3
2022-03-02 08:36:15 +02:00
Renovate Bot
8f40ce8c24 Update actions/checkout action to v3 2022-03-01 20:28:32 +00:00
7b7fdd3aba Merge pull request #6 from ivuorinen/renovate/squizlabs-php_codesniffer-3.x
Update dependency squizlabs/php_codesniffer to v3.6.2
2022-02-10 12:16:46 +02:00
Renovate Bot
2ccf90a7d3 Update dependency squizlabs/php_codesniffer to v3.6.2 2022-02-10 10:15:21 +00:00
2bbda39840 Merge pull request #4 from ivuorinen/renovate/configure
Configure Renovate
2022-02-10 12:14:25 +02:00
Renovate Bot
1ed8522135 Add renovate.json 2022-02-10 08:19:13 +00:00
Ismo Vuorinen
ca885ef899 Fix snyk reported XSS vulnerabilities 2021-12-20 13:21:35 +02:00
5 changed files with 64 additions and 27 deletions

6
.github/renovate.json vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>ivuorinen/renovate-config"
]
}

View File

@@ -7,14 +7,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Validate composer.json and composer.lock
run: composer validate
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
@@ -22,7 +22,7 @@ jobs:
${{ runner.os }}-php-
- name: Setup PHP
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2
with:
php-version: 7.4
extensions: simplexml

View File

@@ -27,6 +27,6 @@
"ext-curl": "*"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.6"
"squizlabs/php_codesniffer": "3.13.2"
}
}

66
composer.lock generated
View File

@@ -4,21 +4,21 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "287b4ba4fba3028b90560807d217298f",
"content-hash": "167d01deb24f5b6bdf96a74db53647f6",
"packages": [],
"packages-dev": [
{
"name": "squizlabs/php_codesniffer",
"version": "3.6.1",
"version": "3.13.2",
"source": {
"type": "git",
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
"reference": "f268ca40d54617c6e06757f83f699775c9b3ff2e"
"url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git",
"reference": "5b5e3821314f947dd040c70f7992a64eac89025c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/f268ca40d54617c6e06757f83f699775c9b3ff2e",
"reference": "f268ca40d54617c6e06757f83f699775c9b3ff2e",
"url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/5b5e3821314f947dd040c70f7992a64eac89025c",
"reference": "5b5e3821314f947dd040c70f7992a64eac89025c",
"shasum": ""
},
"require": {
@@ -28,11 +28,11 @@
"php": ">=5.4.0"
},
"require-dev": {
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
"phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.3.4"
},
"bin": [
"bin/phpcs",
"bin/phpcbf"
"bin/phpcbf",
"bin/phpcs"
],
"type": "library",
"extra": {
@@ -47,32 +47,60 @@
"authors": [
{
"name": "Greg Sherwood",
"role": "lead"
"role": "Former lead"
},
{
"name": "Juliette Reinders Folmer",
"role": "Current lead"
},
{
"name": "Contributors",
"homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer/graphs/contributors"
}
],
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
"homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
"homepage": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
"keywords": [
"phpcs",
"standards"
"standards",
"static analysis"
],
"support": {
"issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
"source": "https://github.com/squizlabs/PHP_CodeSniffer",
"wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
"issues": "https://github.com/PHPCSStandards/PHP_CodeSniffer/issues",
"security": "https://github.com/PHPCSStandards/PHP_CodeSniffer/security/policy",
"source": "https://github.com/PHPCSStandards/PHP_CodeSniffer",
"wiki": "https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki"
},
"time": "2021-10-11T04:00:11+00:00"
"funding": [
{
"url": "https://github.com/PHPCSStandards",
"type": "github"
},
{
"url": "https://github.com/jrfnl",
"type": "github"
},
{
"url": "https://opencollective.com/php_codesniffer",
"type": "open_collective"
},
{
"url": "https://thanks.dev/u/gh/phpcsstandards",
"type": "thanks_dev"
}
],
"time": "2025-06-17T22:17:01+00:00"
}
],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"stability-flags": {},
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
"ext-simplexml": "*",
"ext-curl": "*"
},
"platform-dev": [],
"plugin-api-version": "2.1.0"
"platform-dev": {},
"plugin-api-version": "2.6.0"
}

View File

@@ -99,22 +99,25 @@ if ($current > $last) {
if ($send) {
mail($mail, $subject, $msg, $headers);
} else {
echo $msg . "\n\n";
echo htmlspecialchars($msg, ENT_QUOTES) . "\n\n";
}
$file_write_result = file_put_contents($lastfile, $current);
if (! $file_write_result) {
echo "Error writing to file: $lastfile\n";
echo htmlspecialchars("Error writing to file: $lastfile\n", ENT_QUOTES);
exit(1);
}
if ($debug) {
echo "New last is $current (was $last)\n";
echo htmlspecialchars("New last is $current (was $last)\n", ENT_QUOTES);
}
exit(0);
}
if ($debug) {
echo sprintf("No new XKCD: last=%d current=%d\n", $last, $current);
echo htmlspecialchars(
sprintf("No new XKCD: last=%d current=%d\n", $last, $current),
ENT_QUOTES
);
}