about summary refs log tree commit diff stats
path: root/adapter/protocol
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-01-03 14:49:00 +0100
committerbptato <nincsnevem662@gmail.com>2024-01-03 14:49:55 +0100
commit2c3e1f0e7ba94cffc30ffb90b159234979824672 (patch)
treece39e8c0aeaf553325895f15a731435e40cb0ead /adapter/protocol
parentb512b00d161317422127d633b1ab8ad4412ebfc9 (diff)
downloadchawan-2c3e1f0e7ba94cffc30ffb90b159234979824672.tar.gz
cha-finger: skip leading slash in path
Diffstat (limited to 'adapter/protocol')
-rwxr-xr-xadapter/protocol/cha-finger2
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/protocol/cha-finger b/adapter/protocol/cha-finger
index 57ed9388..42472e21 100755
--- a/adapter/protocol/cha-finger
+++ b/adapter/protocol/cha-finger
@@ -29,7 +29,7 @@ if test -n "$MAPPED_URI_USERNAME"
 then	USER="$MAPPED_URI_USERNAME"
 else	case "$MAPPED_URI_PATH" in
 	/w*) USER="/w ${MAPPED_URI_PATH#/w}" ;;
-	*) USER="$MAPPED_URI_PATH" ;;
+	*) USER="${MAPPED_URI_PATH#/}" ;;
 	esac
 fi
 URL="telnet://$MAPPED_URI_HOST:$PORT"