bug, javascript

Packer bug?

02.03.09 | Comment?

Dean Edwards packer contains a bug using it with the new “encode privates” option.

I’ve just published the part of the script that breaks it.

The script postpend “_hidden” to a given string (when the string
contains “[" and "]“, _hidden should be postpended inside the []).

With the new option, the packer instead of
entity[field_hidden]
shows
entity[field_0].

These are the different tests:

Last test


var _t = "string";
var _t2 = _t + "_string";
document.write(_t2);
//print string_2 and not string_string

PS: grazie Carlo :)

Popularity: 1% [?]

Post a Comment

Your email is never shared. Required fields are marked *

*
*
© 2010 Massimiliano Balestrieri | Thanks, WordPress | Sandbox theme | Standards Compliant XHTML & CSS | RSS Posts & Comments