From: Paul Hänsch Date: Thu, 14 Oct 2021 13:13:21 +0000 (+0200) Subject: bugfix: prevent double submit when setting up new video page X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=e82750023ec5907d4a373f7fe377c79cde41fd04;p=rawnet bugfix: prevent double submit when setting up new video page --- 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