Backend for songs.zachdecook.com
Diffstat (limited to 'laravel/app/Http/Controllers/SongController.php')
| -rw-r--r-- | laravel/app/Http/Controllers/SongController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/laravel/app/Http/Controllers/SongController.php b/laravel/app/Http/Controllers/SongController.php index 00216ce..8d6c497 100644 --- a/laravel/app/Http/Controllers/SongController.php +++ b/laravel/app/Http/Controllers/SongController.php @@ -16,7 +16,7 @@ class SongController extends Controller $newText = ''; $transp = $_GET['transp'] ?? 0; foreach( $lines as $line ){ - $line = htmlspecialchars( $line ); + $line = trim(htmlspecialchars( $line ), "\n\t\r"); if ( $this->chordline( $line ) ) { if ( $transp != 0) { $line = $this->z_transpose2( $line, $transp ); |