fix(fetchers/tags.php.liquid): allow for . characters in tag names and use less abrupt error view
This commit is contained in:
parent
6fdc0b56b9
commit
1af90c14ad
3 changed files with 5 additions and 6 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue