From: paul Date: Mon, 12 Mar 2018 12:33:42 +0000 (+0000) Subject: prevent faulty form fill in bookmark editor X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=e8efec5d9a0e2afba62d6212e11e2b637bcb859b;p=confetti prevent faulty form fill in bookmark editor svn path=/trunk/; revision=160 --- diff --git a/actions/update_bookmarks.sh b/actions/update_bookmarks.sh index 6a17d04..68fd5ab 100755 --- a/actions/update_bookmarks.sh +++ b/actions/update_bookmarks.sh @@ -30,5 +30,4 @@ case "${_POST[submit]}" in ;; esac - redirect "${url}" diff --git a/templates/frame.html.sh b/templates/frame.html.sh index db31ad8..90e0e32 100755 --- a/templates/frame.html.sh +++ b/templates/frame.html.sh @@ -50,7 +50,9 @@ cat < ' \ - "$(attribsafe ${REQUEST_URI})" "$(attribsafe $(grep -F "$REQUEST_URI " "$bmfile" |sed -r 's;.*\t;;'))" "$(l10n bm_del)" + "$(attribsafe ${REQUEST_URI})" \ + "$(attribsafe $(grep -m1 -F "$REQUEST_URI " "$bmfile" |sed -r 's;.*\t;;'))" \ + "$(l10n bm_del)" else printf '