Actions
Bug #48810
closedEpic #55575: Streamline JavaScript Code in the TYPO3 Backend
Wrong escapeObjectId in t3lib/js/jsfunc.tceforms_suggest.js
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-06-04
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
The escape mechanism for the object id in the file t3lib/js/jsfunc.tceforms_suggest.js is wrong. The lines are:
escapeObjectId: function(objectId) { var escapedObjectId; escapedObjectId = objectId.replace(/:/g, '\\:'); escapedObjectId = objectId.replace(/\./g, '\\.'); escapedObjectId = objectId.replace(/\[/g, '\\['); escapedObjectId = objectId.replace(/\]/g, '\\]'); return escapedObjectId; }
which only escapes the closing square bracket. The lines should be:
escapeObjectId: function(objectId) { var escapedObjectId; escapedObjectId = objectId.replace(/:/g, '\\:'); escapedObjectId = escapedObjectId.replace(/\./g, '\\.'); escapedObjectId = escapedObjectId.replace(/\[/g, '\\['); escapedObjectId = escapedObjectId.replace(/\]/g, '\\]'); return escapedObjectId; }
Actions