Backend for songs.zachdecook.com
chord: Fix chord generation
| -rwxr-xr-x | laravel/public/chord.svg | 4 |
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" |