Browse Source

Fixed a bug with special chars in descriptions, disabled debug and pushed version

Tobias Reich 10 years ago
parent
commit
5b5e511cd1
4 changed files with 4 additions and 4 deletions
  1. 1 1
      assets/js/album.js
  2. 2 2
      assets/js/lychee.js
  3. 1 1
      assets/js/photo.js
  4. 0 0
      assets/min/main.js

+ 1 - 1
assets/js/album.js

@@ -267,7 +267,7 @@ album = {
 					view.album.description();
 				}
 
-				params = "setAlbumDescription&albumID=" + photoID + "&description=" + escape(description);
+				params = "setAlbumDescription&albumID=" + photoID + "&description=" + escape(encodeURI(description));
 				lychee.api(params, function(data) {
 
 					if (data!==true) lychee.error(null, params, data);

+ 2 - 2
assets/js/lychee.js

@@ -8,7 +8,7 @@
 var lychee = {
 
 	title: "",
-	version: "2.5 b3",
+	version: "2.5 b4",
 	version_code: "020500",
 
 	api_path: "php/api.php",
@@ -21,7 +21,7 @@ var lychee = {
 
 	publicMode: false,
 	viewMode: false,
-	debugMode: true,
+	debugMode: false,
 
 	username: "",
 	checkForUpdates: false,

+ 1 - 1
assets/js/photo.js

@@ -352,7 +352,7 @@ photo = {
 					view.photo.description();
 				}
 
-				params = "setPhotoDescription&photoID=" + photoID + "&description=" + escape(description);
+				params = "setPhotoDescription&photoID=" + photoID + "&description=" + escape(encodeURI(description));
 				lychee.api(params, function(data) {
 
 					if (data!==true) lychee.error(null, params, data);

File diff suppressed because it is too large
+ 0 - 0
assets/min/main.js


Some files were not shown because too many files changed in this diff