File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -1659,12 +1659,9 @@ - (void)handleXcodeModEvent:(NSAppleEventDescriptor *)event
1659
1659
- (void )handleGetURLEvent : (NSAppleEventDescriptor *)event
1660
1660
replyEvent : (NSAppleEventDescriptor *)reply
1661
1661
{
1662
- NSString *urlString = [[event paramDescriptorForKeyword: keyDirectObject]
1663
- stringValue ];
1664
- // NOTE: URLWithString requires string to be percent escaped.
1665
- urlString = [urlString stringByAddingPercentEscapesUsingEncoding:
1666
- NSUTF8StringEncoding];
1667
- NSURL *url = [NSURL URLWithString: urlString];
1662
+ NSURL *url = [NSURL URLWithString: [[event
1663
+ paramDescriptorForKeyword: keyDirectObject]
1664
+ stringValue ]];
1668
1665
1669
1666
// We try to be compatible with TextMate's URL scheme here, as documented
1670
1667
// at http://blog.macromates.com/2007/the-textmate-url-scheme/ . Currently,
You can’t perform that action at this time.
0 commit comments