]> git.plutz.net Git - rawnet/commitdiff
bugfix: prevent double submit when setting up new video page
authorPaul Hänsch <paul@plutz.net>
Thu, 14 Oct 2021 13:13:21 +0000 (15:13 +0200)
committerPaul Hänsch <paul@plutz.net>
Thu, 14 Oct 2021 13:13:21 +0000 (15:13 +0200)
page_channel.sh

index ff7fa21e976bde465713e633a951d654c19f9d7f..bc05b15919fef30dd305de83b8ef7d853f685f79 100755 (executable)
@@ -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