Ludovic Marcotte
c5a3f06538
(fix) make sure we safely escape all chars
2016-12-09 10:47:44 -05:00
Ludovic Marcotte
012ac98b31
(fix) encore CR for EAS ( fixes #3626 )
2016-04-14 15:23:09 -04:00
Ludovic Marcotte
1615545584
(fix) don't escape \r
2016-04-07 09:27:26 -04:00
Ludovic Marcotte
2b137d6bc0
(fix) properly XML escape wide characters ( fixes #3616 )
2016-04-06 11:20:46 -04:00
Ludovic Marcotte
49d5a72d65
(fix) rewrote the string sanitization to be 32-bit Unicode safe
2016-01-22 20:30:40 -05:00
Jesús García Sáez
75ff4af7cc
Use new function from sope to qp-encode the subject
2015-12-21 17:09:11 +01:00
Euan Thoms
eda84c7b5d
Stage1b (v2 branch) of clang compiler warning patches.
2015-11-06 01:29:26 +08:00
Juan Vallés
36d8fa12d3
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-10 10:24:50 +02:00
Julio García
26bd1b30fa
Revert "Merge pull request #164 from Zentyal/jgarcia/revert-merge-inverse"
...
This reverts commit 1404dbdb88
, reversing
changes made to 72cbd9a45f
.
2015-08-03 09:48:06 +02:00
Jesús García Sáez
3dc8cc78ea
Revert merge from inverse
...
https://github.com/Zentyal/sogo/pull/150
Because the login on web with the use of outlook is broken after
including the DomainLessLogin feature
2015-07-28 12:37:33 +02: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
Wolfgang Sourdeau
c380057b28
Monotone-Parent: 7a136da813c9771632c72c06589d2cb6383ef052
...
Monotone-Revision: 748bc1fd6d5c867c7b2b4da7574602b322a35fa5
Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-08-26T20:45:23
Monotone-Branch: ca.inverse.sogo
2010-08-26 20:45:23 +00:00
Ludovic Marcotte
798076e6fa
See ChangeLog
...
Monotone-Parent: 3567e5aef4045091a835f8185e4f1ff94e748c78
Monotone-Revision: e43c9b00bdea42b8d8040a8c2bb1123e3a5230ec
Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2010-08-11T18:29:05
2010-08-11 18:29:05 +00:00
Francis Lachapelle
cedf1c2479
See ChangeLog.
...
Monotone-Parent: 85e45d760950cc2bf044381b71708cf2f40ad1a5
Monotone-Revision: 9d007ec918e081bd43a3d7944e72cdabbd06949f
Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-07-06T19:22:11
Monotone-Branch: ca.inverse.sogo
2010-07-06 19:22:11 +00:00