From e8efec5d9a0e2afba62d6212e11e2b637bcb859b Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 12 Mar 2018 12:33:42 +0000 Subject: [PATCH] prevent faulty form fill in bookmark editor svn path=/trunk/; revision=160 --- actions/update_bookmarks.sh | 1 - templates/frame.html.sh | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 '