From 1f45a9c79613098358b22c95c27c9cd5044f8885 Mon Sep 17 00:00:00 2001 From: Pierre-Henry Soria Date: Fri, 18 Mar 2016 21:57:31 +0000 Subject: [PATCH] Update the class according to https://github.com/pH-7/QRCode-Generator-PHP-Class --- _protected/framework/Service/QRCode.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_protected/framework/Service/QRCode.class.php b/_protected/framework/Service/QRCode.class.php index 0514dbe48b..80953a953e 100755 --- a/_protected/framework/Service/QRCode.class.php +++ b/_protected/framework/Service/QRCode.class.php @@ -18,7 +18,7 @@ class QRCode { - const API_URL = 'http://chart.apis.google.com/chart?chs='; + const API_URL = 'https://chart.googleapis.com/chart?chs='; private $_sData; @@ -323,6 +323,7 @@ public function wifi($sType, $sSsid, $sPwd) public function finish() { $this->_sData .= 'END:VCARD'; + $this->_sData = Url::encode($this->_sData); return $this; } @@ -336,7 +337,6 @@ public function finish() */ public function get($iSize = 150, $cECLevel = 'L', $iMargin = 1) { - $this->_sData = Url::encode($this->_sData); return static::API_URL . $iSize . 'x' . $iSize . '&cht=qr&chld=' . $cECLevel . '|' . $iMargin . '&chl=' . $this->_sData; }