Buchungskalender: ID-Prüfung erlaubt Bindestrich (UUIDs)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0c5ca76a4d
commit
40a366b8ae
1 file changed
+1
-1
@@ -42,7 +42,7 @@ function schreiben(name, felder) {
|
|||||||
const nichtGefunden = (err) => err?.status === 404 && err.type !== 'collection_not_found' && err.type !== 'database_not_found'
|
const nichtGefunden = (err) => err?.status === 404 && err.type !== 'collection_not_found' && err.type !== 'database_not_found'
|
||||||
|
|
||||||
/** Dokument-IDs landen roh im URL-Pfad: nur harmlose Zeichen durchlassen. */
|
/** Dokument-IDs landen roh im URL-Pfad: nur harmlose Zeichen durchlassen. */
|
||||||
export const ID_RE = /^[A-Za-z0-9_]{1,36}$/
|
export const ID_RE = /^[A-Za-z0-9_-]{1,36}$/
|
||||||
|
|
||||||
async function ladeDok(name, id) {
|
async function ladeDok(name, id) {
|
||||||
if (typeof id !== 'string' || !ID_RE.test(id)) return null
|
if (typeof id !== 'string' || !ID_RE.test(id)) return null
|
||||||
|
|||||||
Reference in new issue
Block a user