Fixed error when trying to download album with ampersand in password #356
This commit is contained in:
parent
67565809f3
commit
d3a87fbfbb
BIN
dist/main.js
vendored
BIN
dist/main.js
vendored
Binary file not shown.
@ -552,7 +552,7 @@ album.getArchive = function(albumID) {
|
||||
if (location.href.indexOf('index.html')>0) link = location.href.replace(location.hash, '').replace('index.html', url)
|
||||
else link = location.href.replace(location.hash, '') + url
|
||||
|
||||
if (lychee.publicMode===true) link += `&password=${ password.value }`
|
||||
if (lychee.publicMode===true) link += `&password=${ encodeURIComponent(password.value) }`
|
||||
|
||||
location.href = link
|
||||
|
||||
|
@ -684,7 +684,7 @@ photo.getArchive = function(photoID) {
|
||||
if (location.href.indexOf('index.html')>0) link = location.href.replace(location.hash, '').replace('index.html', url)
|
||||
else link = location.href.replace(location.hash, '') + url
|
||||
|
||||
if (lychee.publicMode===true) link += '&password=' + password.value
|
||||
if (lychee.publicMode===true) link += `&password=${ encodeURIComponent(password.value) }`
|
||||
|
||||
location.href = link
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user