Fix bug 292878; support Tiger .webloc files. Patch by Wevah, r=me.

This commit is contained in:
smfr%smfr.org 2005-12-05 03:51:59 +00:00
parent 8c11ddb186
commit 731e7c2fc1

View File

@ -66,6 +66,14 @@
CloseResFile(resRef);
}
if (!ret) { // Look for valid plist data.
NSDictionary *plist;
if ((plist = [[NSDictionary alloc] initWithContentsOfFile:inFile])) {
ret = [NSURL URLWithString:[plist objectForKey:@"URL"]];
[plist release];
}
}
}
return ret;