diff options
author | wm4 <wm4@nowhere> | 2016-01-08 09:13:33 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-01-08 09:22:25 +0100 |
commit | 6a73fcc9ed8578b410f0555b9346b3034058a6c7 (patch) | |
tree | fd8729b97fe410b0aae8b493611d113eccd58735 /player/external_files.h | |
parent | 2dd8982f738f287a21cecbc0746af7569ff04dd5 (diff) | |
download | mpv-6a73fcc9ed8578b410f0555b9346b3034058a6c7.tar.bz2 mpv-6a73fcc9ed8578b410f0555b9346b3034058a6c7.tar.xz |
common: allow "\/" as escape sequence
mp_parse_escape() is used by the JSON parser in json.c, and JSON allows
escaping "/" (solidus).
Although it makes no sense, apparently Javascript traditionally allowed
that as escape sequence for working around issues with embedding
Javascript in HTML. (Or something like this must have been the history
of this issue.) Since it's valid in Javascript, it had to be valid in
JSON as well, and JSON explicitly specifies it as valid escape.
Fixes #2694.
Diffstat (limited to 'player/external_files.h')
0 files changed, 0 insertions, 0 deletions