1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-02 16:25:41 +00:00

Merge pull request #160 from micred/jsonescape

fix bug: JS error when pdf contained single quotes in its name; add myse...
This commit is contained in:
Lu Wang 2013-05-31 19:23:26 -07:00
commit cf1c668b81
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ Herbert Jones <herbert@mediafire.com>
Hongliang Tian <tatetian@gmail.com>
John Hewson <john@jahewson.com>
Lu Wang <coolwanglu@gmail.com>
Michele Redolfi <michele@tecnicaict.com>
Ryan Morlok <ryan.morlok@morlok.com>
Packagers:

View File

@ -135,6 +135,7 @@ void outputJSON(ostream & out, const string & s)
{
case '\\': out << "\\\\"; break;
case '"': out << "\\\""; break;
case '\'': out << "\\\'"; break;
case '/': out << "\\/"; break;
case '\b': out << "\\b"; break;
case '\f': out << "\\f"; break;