From e82750023ec5907d4a373f7fe377c79cde41fd04 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 14 Oct 2021 15:13:21 +0200 Subject: [PATCH] bugfix: prevent double submit when setting up new video page --- page_channel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page_channel.sh b/page_channel.sh index ff7fa21..bc05b15 100755 --- a/page_channel.sh +++ b/page_channel.sh @@ -137,7 +137,7 @@ AUTHOR(){ elif ! AUTHOR; then REDIRECT "${_BASE}/channel/${channel}/#ERROR_UPDATE_NOTALLOWED" elif LOCK "$vid_db"; then - if grep -q '^${video} ' "$vid_db"; then + if grep -q "^${video} " "$vid_db"; then RELEASE "$vid_db" REDIRECT "${_BASE}/channel/${channel}/#ERROR_NEWVIDEO_EXISTS" else -- 2.39.2