diff --git a/app/Http/Controllers/ZitatController.php b/app/Http/Controllers/ZitatController.php index f6752bda23c3b79538d8b612f4c828bc2992c0fb..6fa3e1e498f957bb4d66f960a4c31600fd3650b7 100644 --- a/app/Http/Controllers/ZitatController.php +++ b/app/Http/Controllers/ZitatController.php @@ -32,8 +32,8 @@ class ZitatController extends Controller if ($valid) { # This Result is valid. We'll add it Sorted by author if (preg_match("/^\"([^\"]+)\"\s(.*)$/", $zitat, $matches)) { - $quote = $matches[1]; - $author = $matches[2]; + $quote = trim($matches[1]); + $author = trim($matches[2]); if (isset($validResults[$author])) { $validResults[$author][] = $quote; diff --git a/resources/views/zitatsuche.blade.php b/resources/views/zitatsuche.blade.php index 3a843cb86ea55d244bef05e67cb68ae5c4f27b8b..4b81d7a8e149d030130d3646a63069283b952151 100644 --- a/resources/views/zitatsuche.blade.php +++ b/resources/views/zitatsuche.blade.php @@ -18,7 +18,7 @@ <hr /> <h3>Ergebnisse für die Suche "{{$q}}":</h3> @foreach($results as $author => $quotes) - <b>{{$author}}:</b> + <b><a href="{{ action('MetaGerSearch@search', ['eingabe' => $author, 'focus' => 'web', 'encoding' => 'utf8', 'lang' => 'all']) }}" target="_blank">{{$author}}</a>:</b> <ul class="list-unstyled"> @foreach($quotes as $quote) <li><quote>"{{ $quote }}"</quote></li>