From 94a8cc19465fb0ed2fb63fe262e82299814e5c98 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 1 Oct 2019 22:35:24 +0000 Subject: [PATCH] --- source/Plugins/AyaNova.Plugin.QBOI/QBOI.cs | 2 +- source/Plugins/AyaNova.Plugin.QBOI/Util.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Plugins/AyaNova.Plugin.QBOI/QBOI.cs b/source/Plugins/AyaNova.Plugin.QBOI/QBOI.cs index 2b596e8..69d3e29 100644 --- a/source/Plugins/AyaNova.Plugin.QBOI/QBOI.cs +++ b/source/Plugins/AyaNova.Plugin.QBOI/QBOI.cs @@ -496,7 +496,7 @@ namespace AyaNova.PlugIn.QBOI #region Pre flight check private bool DoPFC() { - + if (bPFCDone) return true; diff --git a/source/Plugins/AyaNova.Plugin.QBOI/Util.cs b/source/Plugins/AyaNova.Plugin.QBOI/Util.cs index 8b34d99..9453757 100644 --- a/source/Plugins/AyaNova.Plugin.QBOI/Util.cs +++ b/source/Plugins/AyaNova.Plugin.QBOI/Util.cs @@ -353,9 +353,9 @@ namespace AyaNova.PlugIn.QBOI { using (System.Security.Cryptography.RNGCryptoServiceProvider rng = new System.Security.Cryptography.RNGCryptoServiceProvider()) { - var buffer = new byte[sizeof(UInt64)]; + var buffer = new byte[24]; rng.GetBytes(buffer); - return Convert.ToBase64String(buffer); + return Convert.ToBase64String(buffer).TrimEnd('='); } } @@ -373,7 +373,7 @@ namespace AyaNova.PlugIn.QBOI - System.Diagnostics.Process.Start("https://qboauth.ayanova.com/start/" + QBOI2_SESSION_TOKEN); + System.Diagnostics.Process.Start("https://qboauth.ayanova.com/start/" + System.Uri.EscapeDataString(QBOI2_SESSION_TOKEN)); //here we need to loop checking for the data we need on qboauth site or quit if user selects quit so //a special dialog is required here or something