Revision: 28016
http://sourceforge.net/p/bibdesk/svn/28016
Author: hofman
Date: 2022-10-12 13:46:59 +0000 (Wed, 12 Oct 2022)
Log Message:
-----------
use absolute string as final fallback for website title
Modified Paths:
--------------
trunk/bibdesk/BDSKWebView.m
Modified: trunk/bibdesk/BDSKWebView.m
===================================================================
--- trunk/bibdesk/BDSKWebView.m 2022-10-12 09:38:21 UTC (rev 28015)
+++ trunk/bibdesk/BDSKWebView.m 2022-10-12 13:46:59 UTC (rev 28016)
@@ -424,9 +424,10 @@
title = [[url path] lastPathComponent];
} else {
title = [[url host] stringByRemovingPercentEncoding];
- NSString *path = [[url path]
stringByRemovingPercentEncoding];
- if (path)
- title = [title stringByAppendingString:path];
+ if ([NSString isEmptyString:title])
+ title = [[url absoluteString]
stringByRemovingPercentEncoding];
+ else
+ title = [title stringByAppendingString:[[url path]
stringByRemovingPercentEncoding] ?: @""];
}
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit