X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=cards%2Fedit_card.sh;h=16d759999893c539a5884390ccc147a68772192b;hb=e039a460402b12988170c50f9a57b90af3183ed7;hp=4239cc5968c03b5e58d11a96d0e0ae22f68de41f;hpb=5b8d1b752ede7a6dc4250620ca58971447570a76;p=lobster diff --git a/cards/edit_card.sh b/cards/edit_card.sh index 4239cc5..16d7599 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