Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(enrollment): re-add base64_encode
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Aug 14, 2017
1 parent 288aad7 commit 3f271ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/invitation.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ protected function createQRCodeDocument(User $user, $învitationToken) {
];

$encodedRequest = PluginFlyvemdmNotificationTargetInvitation::DEEPLINK
. addcslashes(implode(';', $enrollmentData), '\;');
. base64_encode(addcslashes(implode(';', $enrollmentData), '\;'));

// Generate a QRCode
$barcodeobj = new TCPDF2DBarcode($encodedRequest, 'QRCODE,L');
Expand Down
2 changes: 1 addition & 1 deletion inc/notificationtargetinvitation.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public static function getAdditionalDatasForTemplate(NotificationTarget $event)
];

$encodedRequest = PluginFlyvemdmNotificationTargetInvitation::DEEPLINK
. addcslashes(implode(';', $enrollmentData), '\;');
. base64_encode(addcslashes(implode(';', $enrollmentData), '\;'));

// Fill the template
$event->data['##flyvemdm.qrcode##'] = Document::getImageTag($document->getField('tag'));
Expand Down

0 comments on commit 3f271ea

Please sign in to comment.