Revision: 5503
http://skim-app.svn.sourceforge.net/skim-app/?rev=5503&view=rev
Author: hofman
Date: 2009-07-21 21:07:19 +0000 (Tue, 21 Jul 2009)
Log Message:
-----------
add percent escapes when getting a URL from a pasteboard string fails
Modified Paths:
--------------
trunk/NSURL_SKExtensions.m
Modified: trunk/NSURL_SKExtensions.m
===================================================================
--- trunk/NSURL_SKExtensions.m 2009-07-21 17:35:43 UTC (rev 5502)
+++ trunk/NSURL_SKExtensions.m 2009-07-21 21:07:19 UTC (rev 5503)
@@ -72,6 +72,8 @@
if ([string hasPrefix:@"<"] && [string hasSuffix:@">"])
string = [string substringWithRange:NSMakeRange(1, [string
length] - 2)];
theURL = [NSURL URLWithString:string];
+ if (theURL == nil)
+ theURL = [NSURL URLWithString:[string
stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
}
if (theURL == nil) {
if ([string hasPrefix:@"~"])
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit