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();
}
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);

View File

@ -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,

View File

@ -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 one or more lines are too long