Adium

Changeset 25236

Show
Ignore:
Timestamp:
09/28/2008 10:14:21 PM (3 months ago)
Author:
sholt
Message:

NSURL has some difficulties with string formatting escaped in URLs, as does CFURLCreateStringByReplacingPercentEscapesUsingEncoding. While I'm investigating workarounds, this is a quick-fix to keep AutoHyperlinks from freezing up the app when one is encountered. Refs #11059.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Frameworks/AutoHyperlinks Framework/Source/AHHyperlinkScanner.m

    r24482 r25236  
    324324                                                                                                          parentString:m_scanString 
    325325                                                                                                                  andRange:scannedRange]; 
    326             return [markedLink autorelease]
     326            return [markedLink URL]? [markedLink autorelease] : nil
    327327        } 
    328328