This commit is contained in:
codemasher
2018-03-13 18:16:02 +01:00
parent b8d8de8db1
commit 23a7e851eb
+4 -3
View File
@@ -161,9 +161,10 @@ class QRCode{
* @throws \chillerlan\QRCode\Data\QRCodeDataException
*/
public function getMatrix(string $data):QRMatrix {
//NOTE: input sanitization should be done outside
//$data = trim($data);
// https://github.com/chillerlan/php-qrcode/pull/15
// NOTE: input sanitization should be done outside
// $data = trim($data);
if(empty($data)){
throw new QRCodeDataException('QRCode::getMatrix() No data given.');
}