Differences From Artifact [6d9eb70d6a]:
- File src/OFMutableURL.m — part of check-in [eba3667137] at 2017-10-29 15:05:07 on branch trunk — Add -[OFURL lastPathComponent] (user: js, size: 2595) [annotate] [blame] [check-ins using]
To Artifact [f6b587c9bc]:
- File
src/OFMutableURL.m
— part of check-in
[5f7305c659]
at
2017-10-31 21:39:36
on branch trunk
— OFURL: URL-encode according to RFC 3986
This also means the parameters go away and get folded into the path. (user: js, size: 2452) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
21 22 23 24 25 26 27 | #import "OFNumber.h" #import "OFString.h" #import "OFURL+Private.h" #import "OFInvalidFormatException.h" @implementation OFMutableURL | | | | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #import "OFNumber.h" #import "OFString.h" #import "OFURL+Private.h" #import "OFInvalidFormatException.h" @implementation OFMutableURL @dynamic scheme, host, port, user, password, path, pathComponents, query; @dynamic fragment; + (instancetype)URL { return [[[self alloc] init] autorelease]; } - (instancetype)init |
︙ | ︙ | |||
96 97 98 99 100 101 102 | @throw [OFInvalidFormatException exception]; [self setPath: [components componentsJoinedByString: @"/"]]; objc_autoreleasePoolPop(pool); } | < < < < < < < | 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | @throw [OFInvalidFormatException exception]; [self setPath: [components componentsJoinedByString: @"/"]]; objc_autoreleasePoolPop(pool); } - (void)setQuery: (OFString *)query { OFString *old = _query; _query = [query copy]; [old release]; } |
︙ | ︙ |