Backend for songs.zachdecook.com
chord: Fix chord generation
Zach DeCook 2021-01-16
parent 5118215 · commit fa5a84e
-rwxr-xr-xlaravel/public/chord.svg4
1 files changed, 2 insertions, 2 deletions
diff --git a/laravel/public/chord.svg b/laravel/public/chord.svg
index 4b62993..8225c71 100755
--- a/laravel/public/chord.svg
+++ b/laravel/public/chord.svg
@@ -1,4 +1,4 @@
#!/bin/sh
printf "20 image/svg+xml\r\n"
-# TODO: Strip the preceding slash from $PATH_INFO
-ccharter $QUERY_STRING $PATH_INFO
+PATH_INFO="$(echo "$PATH_INFO" | sed 's@^/@@g')"
+ccharter "$QUERY_STRING" "$PATH_INFO"