From 6ecd07b5e88e6b51c127f609c04355350c880d65 Mon Sep 17 00:00:00 2001 From: Dominik Pfennig <dominik@suma-ev.de> Date: Tue, 18 Sep 2018 15:04:01 +0200 Subject: [PATCH] Anzeigelink weiter optimiert --- app/Models/Result.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Result.php b/app/Models/Result.php index c81a9dbb3..de7a6c360 100644 --- a/app/Models/Result.php +++ b/app/Models/Result.php @@ -35,7 +35,7 @@ class Result $this->titel = strip_tags(trim($titel)); $this->link = trim($link); $this->anzeigeLink = trim($anzeigeLink); - $this->anzeigeLink = preg_replace("/http[s]{0,1}:\/\/(www\.){0,1}/si", "", $this->anzeigeLink); + $this->anzeigeLink = preg_replace("/(http[s]{0,1}:\/\/){0,1}(www\.){0,1}/si", "", $this->anzeigeLink); $this->descr = strip_tags(trim($descr), '<p>'); $this->descr = preg_replace("/\n+/si", " ", $this->descr); $this->longDescr = $this->descr; -- GitLab