about summary refs log tree commit diff
path: root/laravel/app
diff options
context:
space:
mode:
Diffstat (limited to 'laravel/app')
-rw-r--r--laravel/app/Http/Controllers/SongController.php2
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 );