diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-12-24 13:48:18 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-12-24 13:48:18 -0500 |
commit | 3c08d2ba23e36dbf79ea5fdabaf931bdad32b3b9 (patch) | |
tree | 8f7f8a9b7d8755dc33c36717a453f2199537cb8d /apps/files_external/js | |
parent | 0dbf1d02600ef4075ceffe9c62c1ed32cc24592f (diff) | |
download | nextcloud-server-3c08d2ba23e36dbf79ea5fdabaf931bdad32b3b9.tar.gz nextcloud-server-3c08d2ba23e36dbf79ea5fdabaf931bdad32b3b9.zip |
Change callback url to path only in case oauth parameters are still in url
Diffstat (limited to 'apps/files_external/js')
-rw-r--r-- | apps/files_external/js/google.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/js/google.js b/apps/files_external/js/google.js index 0b3c314eb5d..f9fb8078612 100644 --- a/apps/files_external/js/google.js +++ b/apps/files_external/js/google.js @@ -60,7 +60,7 @@ $(document).ready(function() { var configured = $(this).parent().find('[data-parameter="configured"]'); var token = $(this).parent().find('[data-parameter="token"]'); var token_secret = $(this).parent().find('[data-parameter="token_secret"]'); - $.post(OC.filePath('files_external', 'ajax', 'google.php'), { step: 1, callback: window.location.href }, function(result) { + $.post(OC.filePath('files_external', 'ajax', 'google.php'), { step: 1, callback: location.protocol + '//' + location.host + location.pathname }, function(result) { if (result && result.status == 'success') { $(configured).val('false'); $(token).val(result.data.request_token); |