X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=cards%2Fedit_card.sh;h=a29a098ad76f3fe735c54cc5ab2d54c4e5444e62;hb=c921534e9e36d19a10b23c148e915c90e1b05edb;hp=61c58fe815c10cb456f5f9e3c73c4bd8d52c9c00;hpb=a3ea41c50acacc5387a3434b7c318b71269d9109;p=lobster diff --git a/cards/edit_card.sh b/cards/edit_card.sh index 61c58fe..a29a098 100755 --- a/cards/edit_card.sh +++ b/cards/edit_card.sh @@ -26,11 +26,11 @@ filter="$(REF f)" order="$(REF o)" if tempfile="$(SLOCK "$cardfile" "$locktimeout")"; then - REDIRECT "/cards/?o=${order}&f=${filter}&e=${card}" + REDIRECT "/cards/?o=${order}&f=${filter}&e=${card#/}" elif [ -f "$tempfile" ]; then SET_COOKIE session message="SESSLOCK" - REDIRECT "/cards/?o=${order}&f=${filter}#${card}" + REDIRECT "/cards/?o=${order}&f=${filter}#${card#/}" else SET_COOKIE session message="EDITLOCK" - REDIRECT "/cards/?o=${order}&f=${filter}#${card}" + REDIRECT "/cards/?o=${order}&f=${filter}#${card#/}" fi