From 9c2da1c41ed7a74fdbf773e82ab421c9b96a80ba Mon Sep 17 00:00:00 2001 From: Sean Danischevsky <32126021+seaniedan@users.noreply.github.com> Date: Wed, 13 May 2020 14:28:45 +0100 Subject: [PATCH] Update main.js filenameValidRegExp should allow Conversion Specifier %C so that images and movies can reference the value defined by 'text_event'. --- motioneye/static/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/motioneye/static/js/main.js b/motioneye/static/js/main.js index 7f655da00..5da730bf1 100644 --- a/motioneye/static/js/main.js +++ b/motioneye/static/js/main.js @@ -18,7 +18,7 @@ var passwordHash = ''; var basePath = null; var signatureRegExp = new RegExp('[^A-Za-z0-9/?_.=&{}\\[\\]":, -]', 'g'); var deviceNameValidRegExp = new RegExp('^[A-Za-z0-9\-\_\+\ ]+$'); -var filenameValidRegExp = new RegExp('^([A-Za-z0-9 \(\)/._-]|%[YmdHMSqv])+$'); +var filenameValidRegExp = new RegExp('^([A-Za-z0-9 \(\)/._-]|%[CYmdHMSqv])+$'); var dirnameValidRegExp = new RegExp('^[A-Za-z0-9 \(\)/._-]+$'); var emailValidRegExp = new RegExp('^[A-Za-z0-9 _+.@^~<>,-]+$'); var initialConfigFetched = false; /* used to workaround browser extensions that trigger stupid change events */