From d7a707e061d573fec8b857524c6443bcc7011beb Mon Sep 17 00:00:00 2001 From: vierkantemeter Date: Thu, 15 May 2014 15:36:38 +0200 Subject: [PATCH 1/2] Update so author URL will be preceded by http:// Update so author URL will be preceded by http://. Before this, when author entered his URL without http://, the URL became relative; www.mydomain.com/www.authordomain.com --- core/components/quip/model/quip/quipcomment.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/components/quip/model/quip/quipcomment.class.php b/core/components/quip/model/quip/quipcomment.class.php index fe00b77..bc4c59d 100644 --- a/core/components/quip/model/quip/quipcomment.class.php +++ b/core/components/quip/model/quip/quipcomment.class.php @@ -493,7 +493,8 @@ public function prepare(array $properties = array(),$idx) { if ($this->getOption('showWebsite',$properties,true) && !empty($commentArray['website'])) { $commentArray['authorName'] = $this->xpdo->quip->getChunk($authorTpl,array( 'name' => $commentArray[$nameField], - 'url' => $commentArray['website'], + 'url' => 'http://'.str_replace('http://','',$commentArray['website']), + )); } @@ -512,4 +513,4 @@ public function prepare(array $properties = array(),$idx) { } return $commentArray; } -} \ No newline at end of file +} From 9f36b2629b926840a04d49007da45813b35db0ea Mon Sep 17 00:00:00 2001 From: vierkantemeter Date: Thu, 15 May 2014 15:47:24 +0200 Subject: [PATCH 2/2] Update so author URL will be preceded by http:// Update so author URL will be preceded by http://. Before this, when author entered his URL without http://, the URL became relative; www.mydomain.com/www.authordomain.com --- core/components/quip/model/quip/quipcomment.class.php | 1 - 1 file changed, 1 deletion(-) diff --git a/core/components/quip/model/quip/quipcomment.class.php b/core/components/quip/model/quip/quipcomment.class.php index bc4c59d..b4d20d1 100644 --- a/core/components/quip/model/quip/quipcomment.class.php +++ b/core/components/quip/model/quip/quipcomment.class.php @@ -494,7 +494,6 @@ public function prepare(array $properties = array(),$idx) { $commentArray['authorName'] = $this->xpdo->quip->getChunk($authorTpl,array( 'name' => $commentArray[$nameField], 'url' => 'http://'.str_replace('http://','',$commentArray['website']), - )); }