From f541b776ea706bcc9c2edc938a2425aa33db5639 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Tue, 17 Sep 2013 10:37:17 +0200 Subject: fixed #119, #149 accessing a shared projects requires lowercasing the username - this is now automatically taken care of --- gui.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'gui.js') diff --git a/gui.js b/gui.js index 43fb535..c11793e 100644 --- a/gui.js +++ b/gui.js @@ -68,7 +68,7 @@ sb, CommentMorph, CommandBlockMorph*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2013-September-16'; +modules.gui = '2013-September-17'; // Declarations @@ -298,6 +298,7 @@ IDE_Morph.prototype.openIn = function (world) { */ function interpretUrlAnchors() { + var dict; if (location.hash.substr(0, 6) === '#open:') { hash = location.hash.substr(6); if (hash.charAt(0) === '%' @@ -335,8 +336,13 @@ IDE_Morph.prototype.openIn = function (world) { this.shield.setExtent(this.parent.extent()); this.parent.add(this.shield); myself.showMessage('Fetching project\nfrom the cloud...'); + + // make sure to lowercase the username + dict = SnapCloud.parseDict(location.hash.substr(9)); + dict.Username = dict.Username.toLowerCase(); + SnapCloud.getPublicProject( - location.hash.substr(9), + SnapCloud.encodeDict(dict), function (projectData) { var msg; myself.nextSteps([ @@ -3735,7 +3741,7 @@ IDE_Morph.prototype.setCloudURL = function () { 'https://snapcloud.miosoft.com/miocon/app/' + 'login?_app=SnapCloud', 'local network lab' : - '192.168.2.110:8087/miocon/app/login?_app=SnapCloud', + '192.168.2.107:8087/miocon/app/login?_app=SnapCloud', 'local network office' : '192.168.186.167:8087/miocon/app/login?_app=SnapCloud', 'localhost dev' : -- cgit v1.3.1