Overview
| Comment: | Also escape \r in -[stringByXMLEscaping].
This is the only way the \r does not get lost when parsing the XML! |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | 0.5 |
| Files: | files | file ages | folders |
| SHA3-256: |
7d8ab5ba317b0e497f4efc208d0069ca |
| User & Date: | js on 2011-06-04 16:30:57 |
| Other Links: | branch diff | manifest | tags |
Context
|
2011-06-04
| ||
| 18:49 | Fix a bug in -[OFDictionary initWithKeys:arguments:]. (check-in: 448a35dd9b user: js tags: 0.5) | |
| 16:30 | Also escape \r in -[stringByXMLEscaping]. (check-in: 7d8ab5ba31 user: js tags: 0.5) | |
| 15:41 | Add -[hash] to OFDate, as it is required if there's -[isEqual:]. (check-in: 04d0e47000 user: js tags: 0.5) | |
Changes
Modified src/OFString+XMLEscaping.m from [c2066f8693] to [aa261c5ddc].
| ︙ | |||
63 64 65 66 67 68 69 70 71 72 73 74 75 76 | 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | + + + + |
append = "'";
append_len = 6;
break;
case '&':
append = "&";
append_len = 5;
break;
case '\r':
append = "
";
append_len = 5;
break;
default:
append = NULL;
append_len = 0;
}
if (append != NULL) {
if ((tmp = realloc(str_c, len + append_len)) == NULL) {
|
| ︙ |