From 8e68307c18a378db543a4e42c67cefa5345a53c4 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 16 Jun 2017 06:55:29 +0100 Subject: [PATCH] added rel=nofollow for parsed links in claim description --- src/Template/Main/claims.ctp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Template/Main/claims.ctp b/src/Template/Main/claims.ctp index 9b4347c..1100003 100644 --- a/src/Template/Main/claims.ctp +++ b/src/Template/Main/claims.ctp @@ -61,8 +61,8 @@ $desc = $claim->Description; if (strlen(trim($desc)) == 0) { $desc = 'No description available.'; } else { - $desc = preg_replace('#((https?|ftp)://(\S*?\.\S*?))([\s)\[\]{},;"\':<]|\.\s|$)#i','$1$4', $desc); - $desc = preg_replace('/(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/is', '$0', $desc); + $desc = preg_replace('#((https?|ftp)://(\S*?\.\S*?))([\s)\[\]{},;"\':<]|\.\s|$)#i','$1$4', $desc); + $desc = preg_replace('/(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/is', '$0', $desc); } ?> @@ -103,7 +103,7 @@ if (strlen(trim($desc)) == 0) {
TransactionHash ?>
ClaimType == 2): ?> -
Fee
+
Cost
NSFW