mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
BUG-2071: Fixed Box upload, there seems to be a change in the URL behavior of the site.
This commit is contained in:
parent
ede5bfef97
commit
07cd0b041f
1 changed files with 10 additions and 13 deletions
|
@ -29,25 +29,22 @@ namespace GreenshotPlugin.Controls {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The OAuthLoginForm is used to allow the user to authorize Greenshot with an "Oauth" application
|
/// The OAuthLoginForm is used to allow the user to authorize Greenshot with an "Oauth" application
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public partial class OAuthLoginForm : Form {
|
public sealed partial class OAuthLoginForm : Form {
|
||||||
private static readonly ILog LOG = LogManager.GetLogger(typeof(OAuthLoginForm));
|
private static readonly ILog LOG = LogManager.GetLogger(typeof(OAuthLoginForm));
|
||||||
private readonly string _callbackUrl;
|
private readonly string _callbackUrl;
|
||||||
private IDictionary<string, string> _callbackParameters;
|
private IDictionary<string, string> _callbackParameters;
|
||||||
|
|
||||||
public IDictionary<string, string> CallbackParameters {
|
public IDictionary<string, string> CallbackParameters => _callbackParameters;
|
||||||
get {
|
|
||||||
return _callbackParameters;
|
public bool IsOk => DialogResult == DialogResult.OK;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsOk {
|
|
||||||
get {
|
|
||||||
return DialogResult == DialogResult.OK;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public OAuthLoginForm(string browserTitle, Size size, string authorizationLink, string callbackUrl) {
|
public OAuthLoginForm(string browserTitle, Size size, string authorizationLink, string callbackUrl) {
|
||||||
_callbackUrl = callbackUrl;
|
_callbackUrl = callbackUrl;
|
||||||
|
// Fix for BUG-2071
|
||||||
|
if (callbackUrl.EndsWith("/"))
|
||||||
|
{
|
||||||
|
_callbackUrl = callbackUrl.Substring(0, callbackUrl.Length - 1);
|
||||||
|
}
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
ClientSize = size;
|
ClientSize = size;
|
||||||
Icon = GreenshotResources.getGreenshotIcon();
|
Icon = GreenshotResources.getGreenshotIcon();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue