diff --git a/webinterface/modules.py b/webinterface/modules.py index 9679e31c..33c9b8e8 100755 --- a/webinterface/modules.py +++ b/webinterface/modules.py @@ -112,6 +112,9 @@ async def add_module(request): form = dict(await request.form()) name = form.get("name", "") + if "/" in name: + return PlainTextResponse("Invalid module name provided.") + if name in config.mercure.modules: return PlainTextResponse("A module with this name already exists.") diff --git a/webinterface/templates/modules.html b/webinterface/templates/modules.html index 36acb9ed..51f2e014 100755 --- a/webinterface/templates/modules.html +++ b/webinterface/templates/modules.html @@ -73,7 +73,7 @@

Processing Modules

-

diff --git a/webinterface/templates/queue.html b/webinterface/templates/queue.html index a91d200e..f52fb285 100755 --- a/webinterface/templates/queue.html +++ b/webinterface/templates/queue.html @@ -193,7 +193,7 @@
-
diff --git a/webinterface/templates/rules.html b/webinterface/templates/rules.html index 70f9b223..fd35b838 100755 --- a/webinterface/templates/rules.html +++ b/webinterface/templates/rules.html @@ -125,7 +125,7 @@

DICOM Rules

-

diff --git a/webinterface/templates/targets.html b/webinterface/templates/targets.html index 3a307297..c9c706bf 100755 --- a/webinterface/templates/targets.html +++ b/webinterface/templates/targets.html @@ -86,7 +86,7 @@

Routing Targets

-

diff --git a/webinterface/templates/users.html b/webinterface/templates/users.html index 1415d23b..9d5ccb15 100755 --- a/webinterface/templates/users.html +++ b/webinterface/templates/users.html @@ -88,7 +88,7 @@

Users

-