[TASK] Use https link for twitter accounts 69/23169/2
authorNicole Cordes <cordes@cps-it.de>
Sat, 17 Aug 2013 23:25:09 +0000 (01:25 +0200)
committerNicole Cordes <typo3@cordes.co>
Sat, 17 Aug 2013 23:31:00 +0000 (01:31 +0200)
Releases: 1.0
Change-Id: I4886778c28045df8409926973cd138d27c72973b
Reviewed-on: https://review.typo3.org/23169
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Classes/UserFunction/user_wttwitter_userfunction.php

index e43cfbb..281fdd3 100644 (file)
@@ -89,7 +89,7 @@ class user_wttwitteruserfunction {
                foreach ((array)$arr_result2[0] as $value) { // one loop for every twittername in string
                        $value = trim($value); // trim it
                        if (!empty($value)) { // if there is a value
-                               $typolinkconf = array('parameter' => 'http://www.twitter.com/' . str_replace('@', '', $value)); // typolink configuration
+                               $typolinkconf = array('parameter' => 'https://www.twitter.com/' . str_replace('@', '', $value)); // typolink configuration
                                $typolinkconf = array_merge((array)$conf['typolink.'], $typolinkconf); // get params from typoscript
                                $string = str_replace($value, $this->cObj->typolink($value, $typolinkconf), $string); // replace each url with typolink
                        }