Menu

#7 Album import fails (JavaScript error)

Release_130
open
3
2003-07-18
2003-07-18
No

When importing the second disc of a multi-disc album,
a JavaScript error could occur if the "Acquired From"
field contains an apostrophe character entered during
the first disc import. For example, if the field contained
"Mike's friend", then the HTML produced would contain:

document.all.acquiredFrom.value = 'Mike's friend';

which produces a JavaScript error.

The solution is to escape all literal strings embedded
into JavaScript statements.

Discussion


Log in to post a comment.