Project

General

Profile

Actions

Task #55009

closed

Epic #55575: Streamline JavaScript Code in the TYPO3 Backend

Replace $GLOBALS['LANG']->JScharCode() with \TYPO3\CMS\Core\Utility\GeneralUtility::encodeJavaScriptString()

Added by Michiel Roos over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2014-01-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
easy
Sprint Focus:

Description

The expensive JScharCode() calls (many calls to substr(), chr() and ord()) can be replaced with calls to \TYPO3\CMS\Core\Utility\GeneralUtility::encodeJavaScriptString()

Take care to add quotes around the result.


Related issues 1 (0 open1 closed)

Follows TYPO3 Core - Task #54560: Replace JavaScriptEncoder with json_encode()Closed2013-12-22

Actions
Actions

Also available in: Atom PDF