Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account
This post has been closed. You can still view previous posts, but you can't post any new replies.

Pasting a character sheet into API Script Editor and saving breaks the API Script Editor

1432749516

Edited 1432749689
Invincible Spleen
Sheet Author
Being temporarily confused about what was in my clipboard, I pasted character sheet HTML into a new API script and hit save. This caused character sheet HTML to become part of the API Script Editor page, and rendered my Save, Delete, and Disable buttons, as well as the New Script tab, inoperable. I had to clone my campaign and delete the original to rid myself of the "script" I'd created. For reference, the character sheet I pasted in was the V20 sheet found here . The editor page remained broken in both Firefox 37.0.2, and Chrome 43.0.2357.73 beta-m, on both Windows 7 and 8.1. Seems like some sort of input sanitization/escaping issue to me.
1432753791
Stephen Koontz
Forum Champion
Marketplace Creator
Sheet Author
API Scripter
Compendium Curator
Part of allowing the API to have the control it does makes it vulnerable to borking the interface if you put the wrong things in it. It's why there are so many warnings at the top of that page.