Overview
Comment: | OFMutableURI: Always lowercase the scheme |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
a7356069ccec82bb5705e96779e66df6 |
User & Date: | js on 2022-10-03 21:17:08 |
Other Links: | manifest | tags |
Context
2022-10-03
| ||
22:18 | A few minor documentation fixes check-in: 694da470d4 user: js tags: trunk | |
21:17 | OFMutableURI: Always lowercase the scheme check-in: a7356069cc user: js tags: trunk | |
21:02 | tests: Fix file URI test on Windows check-in: 234ab0de22 user: js tags: trunk | |
Changes
Modified src/OFMutableURI.m from [a21b779d5d] to [6f860bcc98].
︙ | ︙ | |||
39 40 41 42 43 44 45 | } - (void)setScheme: (OFString *)scheme { void *pool = objc_autoreleasePoolPush(); OFString *old = _percentEncodedScheme; | | > | < | > > > | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | } - (void)setScheme: (OFString *)scheme { void *pool = objc_autoreleasePoolPush(); OFString *old = _percentEncodedScheme; _percentEncodedScheme = [[scheme.lowercaseString stringByAddingPercentEncodingWithAllowedCharacters: [OFCharacterSet URISchemeAllowedCharacterSet]] copy]; [old release]; objc_autoreleasePoolPop(pool); } - (void)setPercentEncodedScheme: (OFString *)percentEncodedScheme { void *pool = objc_autoreleasePoolPush(); OFString *old = _percentEncodedScheme; if (percentEncodedScheme != nil) OFURIVerifyIsEscaped(percentEncodedScheme, [OFCharacterSet URISchemeAllowedCharacterSet]); _percentEncodedScheme = [percentEncodedScheme.lowercaseString copy]; [old release]; objc_autoreleasePoolPop(pool); } - (void)setHost: (OFString *)host { void *pool = objc_autoreleasePoolPush(); OFString *old = _percentEncodedHost; |
︙ | ︙ |