diff --git a/package-lock.json b/package-lock.json index e381d06..dc56971 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "coryd.dev", - "version": "2.0.0", + "version": "2.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "coryd.dev", - "version": "2.0.0", + "version": "2.0.1", "license": "MIT", "dependencies": { "html-minifier-terser": "7.2.0", diff --git a/package.json b/package.json index 74273a0..45239c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "2.0.0", + "version": "2.0.1", "description": "The source for my personal site. Built using 11ty (and other tools).", "type": "module", "engines": { diff --git a/src/includes/fetchers/tags.php.liquid b/src/includes/fetchers/tags.php.liquid index 4ec6785..604fa61 100644 --- a/src/includes/fetchers/tags.php.liquid +++ b/src/includes/fetchers/tags.php.liquid @@ -27,9 +27,8 @@ if (isset($matches[2]) && (int)$matches[2] === 1) { $tag = strtolower(urldecode($matches[1])); -if (!preg_match('/^[\p{L}\p{N} _\-]+$/u', $tag)) { - http_response_code(400); - echo "Invalid tag"; +if (!preg_match('/^[\p{L}\p{N} _\.\-]+$/u', $tag)) { + echo file_get_contents(__DIR__ . "/../404/index.html"); exit(); }