Fixed a bug with special chars in descriptions, disabled debug and pushed version
This commit is contained in:
parent
a3828e72ae
commit
5b5e511cd1
@ -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);
|
||||
|
@ -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,
|
||||
|
@ -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
Loading…
Reference in New Issue
Block a user