pad.libre-service.eu-etherpad/src/static
Daniel Perez Alvarez 699aa299f8 Normalize inserted text using UNorm
For some reason, the client was sending the server a Unicode-normalized
version of inserted strings. So if for example we inserted the string
'ä' (i.e. \x61\xCC\x88) into the document, what would be sent to the
server would be 'ä' (i.e. \xC3\xA4).

This wouldn't be a problem on its own. BUT JavaScript reports that the
length of the first string is 2, while the length of the second one is
1.

So the command that was being sent to the server was 'Z:1>2*0+1$ä', when
it should really be 'Z:1>1*0+1$ä'. When the `checkRep` method checks the
length of the inserted string, it finds an inconsistency, and
disconnects the client.

We now normalize the inserted string before the command is generated, so
the length is always correct.
2012-08-13 17:09:02 +01:00
..
css Fix html/css 2012-07-15 16:03:12 +02:00
custom Fix gitignore for custom files 2012-03-04 19:50:05 +01:00
img Put loading git back in. 2012-07-14 15:12:21 +02:00
js Normalize inserted text using UNorm 2012-08-13 17:09:02 +01:00
favicon.ico Merge branch 'pita' 2012-03-02 22:00:20 +01:00
robots.txt The Big Renaming - etherpad is now an NPM module 2012-02-26 13:07:51 +01:00
tests.html make /static/tests.html functional again, 2012-07-07 20:41:26 +02:00