Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | ed23ac1d2b662e4d860ea185d7fa2764032bf3d4 |
|---|---|
| Date: | 2009-11-20 13:39:24 |
| User: | dmitry |
| Comment: | Fix inserting two protocols (http://http://) when last-sync-url doesn't have username/password |
Tags And Properties
- branch=trunk inherited from [813a778bdc]
- sym-trunk inherited from [813a778bdc]
Changes
Changes to TimelineGenerator.m
| Old (1d7dbd67907f3b1d) | New (d84de01edd288ce4) | |||
|---|---|---|---|---|
| 1 | #import <Foundation/Foundation.h> | 1 | #import <Foundation/Foundation.h> | |
| 2 | #import <sqlite3.h> | 2 | #import <sqlite3.h> | |
| 3 | 3 | |||
| 4 | NSMutableString *HTMLTimelineForDatabase(const char *database, int limit) | 4 | NSMutableString *HTMLTimelineForDatabase(const char *database, int limit) | |
| 5 | { | 5 | { | |
| 65 hidden lines | ||||
| 71 | } | 71 | } | |
| 72 | if ([protocol length] > 0) { | 72 | if ([protocol length] > 0) { | |
| 73 | NSRange r = [url rangeOfString:@"@"]; | 73 | NSRange r = [url rangeOfString:@"@"]; | |
| 74 | if (r.location != NSNotFound) { | 74 | if (r.location != NSNotFound) { | |
| 75 | [url deleteCharactersInRange:NSMakeRange(0, r.location+r.length)]; | 75 | [url deleteCharactersInRange:NSMakeRange(0, r.location+r.length)]; | |
| > | 76 | } else { | ||
| > | 77 | [url deleteCharactersInRange:NSMakeRange(0, [protocol length])]; | ||
| 76 | } | 78 | } | |
| 77 | } | 79 | } | |
| 78 | lastSyncURL = [NSString stringWithFormat:@"%@%@", protocol, url]; | 80 | lastSyncURL = [NSString stringWithFormat:@"%@%@", protocol, url]; | |
| 79 | } | 81 | } | |
| 80 | } | 82 | } | |
| 59 hidden lines | ||||
| 140 | 142 | |||
| 141 | out: | 143 | out: | |
| 142 | sqlite3_close(db); | 144 | sqlite3_close(db); | |
| 143 | return html; | 145 | return html; | |
| 144 | } | 146 | } | |