Gaspar Sinai writes:

> http://www.yudit.org/security/

About the first of your samples: what happens there in the first and
the third line is that inside the Java programs, the strings are
embedded in left-to-right text, whereas in the JTextArea they have no
preferred direction, and the Unicode bidi algorithm looks at the
direction of the first logical character that has a direction. You can
fix it by adding a left-to-right direction marker to the strings:

    new JLabel("\u200e...");
or
    new JLabel("\u202a...");
or
    new JLabel("\u202d...");

I don't see this as a security problem, because programmers ought to
test their programs before releasing them.

Can't comment on the second sample, though.

Bruno
--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to