Bug #989

Backslash not escaped within JavaScript strings [Jesse Skinner]

Added by Old User almost 13 years ago. Updated 14 days ago.

Status:Nouveau Start date:
Priority:Major Due date:
Assignee:Old User % Done:

0%

Category:-
Target version:-

Description

[Jesse Skinner]
In TreeviewAction, backslashes '\' are not escaped to "\\". Only double-quotes are escaped. This can break escaped quotes in the onclick attribute, for example.

The solution is trivial. In TreeviewAction::execute(), Change:

if (lc_buffer.charAt(i) '"') {

to:

if (lc_buffer.charAt(i) '"' || lc_buffer.charAt(i) == '\\') {

History

Updated by Lightfor gee1940 14 days ago

Javascript is very important to make a new website. The reliable access to the sufficient quantity of affordable nutrition food which helps others of having realistic access to a sufficient quantity of a dramatic food security assessment. This totalassignmenthelp reviews helps to be successful in a unique and fundamental field of work.

Also available in: Atom PDF