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

This commit is contained in:
Tobias Reich 2014-06-15 19:11:54 +02:00
parent a3828e72ae
commit 5b5e511cd1
4 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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

File diff suppressed because one or more lines are too long