Issue Bug Closed

#59655Fatal JS Error in elementBrowser with %

Rémy DANIEL 06/18/14, 17:19 updated 10/02/18, 11:54

Description

TYPO3 6.2.3

When I select an item from the element browser (or from the autocomplete wizard), and if the item contains a % (percent), I get a JS error :

URIError: malformed URI sequence

The error happens in typo3/sysext/backend/Resources/Public/JavaScript/FormEngine.js at the line 131.
I really don’t know why decodeURI is used here…

So I reworked the part where the option is created and inserted in the DOM, so that we can get rid of decodeURI.

I will submit a review soon.

Reviews 2