Commit graph

107 commits

Author SHA1 Message Date
Francis Lachapelle 15de264967 Web-based management of email certificate (cont'd) 2018-01-12 14:47:31 -05:00
Ludovic Marcotte 8f2bcb6055 (fix) cosmetics 2017-12-23 05:03:18 -05:00
Francis Lachapelle d526efa501 Remove null characters from JSON responses 2017-12-07 16:07:25 -05:00
Ludovic Marcotte 340ddf0ae6 (fix) make sure we safely escape all chars 2016-12-09 10:45:44 -05:00
Ludovic Marcotte 2a2ebd553e (test) handle sanitization before passing data to libxml 2016-12-06 14:05:27 -05:00
Ludovic Marcotte 4ec0615bcd (fix) encore CR for EAS (fixes #3626) 2016-04-14 15:21:49 -04:00
Ludovic Marcotte 5d26175d56 (fix) don't escape \r 2016-04-07 09:27:57 -04:00
Ludovic Marcotte 35d1cab856 (fix) properly XML escape wide characters (fixes #3616) 2016-04-06 11:19:18 -04:00
Patrice Levesque 7c25b53fdf Remove pointless #imports from .m and .h files
This was done with a brute-force approach, ensuring no additional
warnings from GCC 4.9 under x86_64.
2016-02-13 16:11:52 -05:00
Ludovic Marcotte 3c0059192d (fix) rewrote the string sanitization to be 32-bit Unicode safe 2016-01-22 20:31:55 -05:00
Ludovic Marcotte b3bc6bb7dc Applied changes coming from v2/PR#184. 2016-01-18 09:26:07 -05:00
Euan Thoms 3c62cc744e Stage 1 of clang compiler warning patches. 2015-10-31 14:10:03 +08:00
Juan Vallés 0982d50643 Improve first character check in CSS identifiers
A CSS identifier can't start with a digit, so when a folder name does,
a '_' character is appended at the beginning of its CSS identifier.

The check for this first character used the `isdigit()` function, which
takes a `char` argument, while `[self objectAtIndex: 0]` returns a
`unichar`, i.e. a 16-bit unsigned integer. This caused some non-digit
characters to pass this check (e.g. Chinese characters), ending up with
an underscore at the beginning of the folder name.
2015-09-14 12:55:32 -04:00
Francis Lachapelle a70ea38572 New method [NSString+Utilities asSafeJSString] 2015-06-11 11:44:17 -04:00
Ludovic Marcotte d9896192f3 Revert "Revert "Improve creation of CSS identifier""
This reverts commit 7d018221ef.
2015-06-10 20:05:40 -04:00
Ludovic Marcotte 7d018221ef Revert "Improve creation of CSS identifier"
This reverts commit e40a19cf89.
2015-06-10 16:31:15 -04:00
Francis Lachapelle e40a19cf89 Improve creation of CSS identifier
Now escaping (), [], {}, ", and ;
2015-06-10 14:02:44 -04:00
Jesús García Sáez c4b0ac209b NSString:objectFromJSONString now can parse single values
Like null => [NSNull null]
2014-11-19 17:12:32 +01:00
Ludovic Marcotte 95b122c912 Simplified even more -safeString 2014-09-29 15:04:40 -04:00
Ludovic Marcotte aa0499dbac Fixed sanitization char skipping and #2936 2014-09-29 14:28:13 -04:00
Ludovic Marcotte 3675220756 Refactored code to be more rigorous Unicode-wise. 2014-09-24 14:14:25 -04:00
Ludovic Marcotte 8ba031d6ec Consider 0x0C as "unsafe" 2014-09-15 19:54:07 -04:00
Ludovic Marcotte c31429a5d5 Also include the BS character in non-safe ones. 2014-05-27 08:45:00 -04:00
Francis Lachapelle 6cecca6c4f Fix CSS id for string prefixed with a digit
When encoding a string as a CSS identifier, we must add an underscore if
the strings starts with a digit.
2014-03-06 21:32:36 -05:00
Ludovic Marcotte 31969d162d Properly escape some control chars (and generalized it) 2014-02-04 15:03:02 -05:00
Ludovic Marcotte 1c439c866e Added DAV support for mails labels. 2013-11-13 15:44:57 -05:00
Ludovic Marcotte 05990e9a14 Fix for bug 2007 2013-09-30 10:50:27 -04:00
Francis Lachapelle 8e5a26dfb1 Remove unicode separators from JSON
Fixes #2309
2013-06-05 15:55:52 -04:00
Ludovic Marcotte 49a2299414 Avoid going out of bounds for special URL chars ending mail contents. 2013-02-05 16:11:37 -05:00
Francis Lachapelle 0408415c61 Remove control characters before returning JSON 2013-01-30 15:47:20 -05:00
Wolfgang Sourdeau 21ee23e7df avoid comparisons that extend past the string length 2012-10-30 16:59:22 -04:00
Wolfgang Sourdeau 5557c01b99 Monotone-Parent: 61e6d0133bf0d45c09767727617ba746f65a28b9
Monotone-Revision: 54ac2dbf42dee286f64da8b9b3c4567570b00258

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-08-13T15:29:44
Monotone-Branch: ca.inverse.sogo
2012-08-13 15:29:44 +00:00
Francis Lachapelle 2c9a61f0c5 See ChangeLog
Monotone-Parent: 6a6bbe9da76e6e30fd9ce63cf4a8c7677f5f61a0
Monotone-Revision: f542ae0ee839e825fc2f1dae6c5d916237edb3e4

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2012-06-01T14:29:30
2012-06-01 14:29:30 +00:00
Ludovic Marcotte 08230b33bb See ChangeLog
Monotone-Parent: 747fe8c2134a990c1cdf3b494c2b7776021cb736
Monotone-Revision: 3c4baa92c5634d4da061da739a9b544d04c44586

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2012-05-31T13:24:32
2012-05-31 13:24:32 +00:00
Ludovic Marcotte d6f0203351 Patch applied from bug #1664
Monotone-Parent: 1e79eab4c546452715e5171f1c326b7d36f1c195
Monotone-Revision: 99dc7d9dce88b8a323b1e7aab60de99ed2bfda60

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2012-05-29T18:56:15
2012-05-29 18:56:15 +00:00
Wolfgang Sourdeau 6aa627a800 Monotone-Parent: 2fb9aaf01f9b4a29e3d49d6c35deaf48a4e57e9c
Monotone-Revision: 825d6255230167e6f80d8015a569afa6bdb4cb7d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-16T15:24:16
2012-04-16 15:24:16 +00:00
Wolfgang Sourdeau 823f57deca Monotone-Parent: 858274c7be3ad2a6383c2f85c8ad10907bb43292
Monotone-Revision: 2718d596001d2e9358dcce09a959434c8f775f9f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-05T18:50:05
2012-04-05 18:50:05 +00:00
Wolfgang Sourdeau 499c4d1efb Monotone-Parent: 96f11391475b0d4e71002f19f89309839d039b36
Monotone-Revision: b2bfdd5b59fed2950707131eca171b4758bcd635

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-09T20:34:52
Monotone-Branch: ca.inverse.sogo
2012-02-09 20:34:52 +00:00
Wolfgang Sourdeau 4ba4c622bc Monotone-Parent: 995b68ade85d0d884cdf8f6fc87e55f0c376a80c
Monotone-Revision: 61fe02b6c3bc4f0aa3797d661d014d8c256b0de9

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-12-30T20:39:07
Monotone-Branch: ca.inverse.sogo
2011-12-30 20:39:07 +00:00
Francis Lachapelle 43b48bd3db See ChangeLog.
Monotone-Parent: 5be507aec21eb7c99a5024135035b80901450a40
Monotone-Revision: 43302bf5a2ca20f32477d5cd984a6f08aeb0149b

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2011-10-13T10:53:16
Monotone-Branch: ca.inverse.sogo
2011-10-13 10:53:16 +00:00
Wolfgang Sourdeau 5f6f472b16 Monotone-Parent: 3049bbd9ddfe5886523c3f742888bf850719f4bc
Monotone-Revision: d9a86eb13b216d79e4554381c163dbca408f0d39

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-07-19T20:01:13
Monotone-Branch: ca.inverse.sogo
2011-07-19 20:01:13 +00:00
Ludovic Marcotte 8cac68562a Fix for bug #1260
Monotone-Parent: a7450cb20f9b7540324748f847e35d9eb3e1ba15
Monotone-Revision: b02226d59c16236b8e8eab6e22a7346f679f2ee7

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2011-06-23T13:34:50
Monotone-Branch: ca.inverse.sogo
2011-06-23 13:34:50 +00:00
Wolfgang Sourdeau c3eaf9f3da Monotone-Parent: a1ab19d0430de4dc429a378a11f7f8e16772efd3
Monotone-Revision: 7ed8d0e95d642fed8f24b92fc18f0e2abc1b90d0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-06-16T14:38:14
Monotone-Branch: ca.inverse.sogo
2011-06-16 14:38:14 +00:00
Wolfgang Sourdeau 1d6c7eb00e Monotone-Parent: 7cced8aec79bd2e835d318154c57fb61273a4b35
Monotone-Revision: c6e69361038ae5b74d8ad57cb16d8b1eb0d55bab

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-04-05T13:34:55
Monotone-Branch: ca.inverse.sogo
2011-04-05 13:34:55 +00:00
Ludovic Marcotte f3e23ff651 See ChangeLog
Monotone-Parent: baa6f9af328e12270813b11beac4250ab90005b0
Monotone-Revision: 659def76b8868bdc540986987d61b39410737054

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2011-02-02T01:58:56
Monotone-Branch: ca.inverse.sogo
2011-02-02 01:58:56 +00:00
Ludovic Marcotte 13798939bf See ChangeLog
Monotone-Parent: 6bd02ef1f10a4cfb8e4199f21aebc3e20539ebca
Monotone-Revision: 4bf1d5199159aabb88dec15bd4be9362748e3ba1

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2010-12-29T13:01:16
Monotone-Branch: ca.inverse.sogo
2010-12-29 13:01:16 +00:00
Wolfgang Sourdeau f52276b815 Monotone-Parent: 4c36bcfaa11d40479193d295b9a39014e769fb8b
Monotone-Revision: 8e8048de073d169fe8d1ce29a4351072288002ea

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-11-02T15:54:57
Monotone-Branch: ca.inverse.sogo
2010-11-02 15:54:57 +00:00
Wolfgang Sourdeau abd4e94b17 Monotone-Parent: 791ffeb9080220a3ed56aa0ef7edbeeac9361954
Monotone-Revision: a0bc95e9ad9952cc7f35fa2509adbe2985a3c622

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-11-02T13:19:02
Monotone-Branch: ca.inverse.sogo
2010-11-02 13:19:02 +00:00
Wolfgang Sourdeau 5c811e36ca Monotone-Parent: 4ad21ea0342a626a99aabc213cf8ed9a827eb0c4
Monotone-Revision: d175e2ab17f0d56d2fdc9a046048a0302d9fd0f7

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-11-02T13:16:05
Monotone-Branch: ca.inverse.sogo
2010-11-02 13:16:05 +00:00
Wolfgang Sourdeau 3743b78fff Monotone-Parent: 652fb1324338399d044d5f01bb158d94080a27c0
Monotone-Revision: ea84b0da49761a54044bb70c2502171c1b981e86

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-10-26T18:20:46
Monotone-Branch: ca.inverse.sogo
2010-10-26 18:20:46 +00:00