mirror of
https://github.com/alangrainger/immich-public-proxy.git
synced 2024-12-28 03:41:58 +00:00
Update key allowed characters
This commit is contained in:
parent
ca0eba5949
commit
1d343fe9d2
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ const app = express()
|
|||
require('dotenv').config()
|
||||
|
||||
app.get('/share/:key', async (req, res) => {
|
||||
if (req.params.key.match(/[^A-Za-z0-9-]/)) {
|
||||
if (req.params.key.match(/[^A-Za-z0-9-_]/)) {
|
||||
// Invalid characters in the incoming URL
|
||||
res.status(404).send()
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue