Revision: 29494
http://sourceforge.net/p/bibdesk/svn/29494
Author: hofman
Date: 2025-08-29 08:45:47 +0000 (Fri, 29 Aug 2025)
Log Message:
-----------
also strip query and fragment from url for javascript alert title
Modified Paths:
--------------
trunk/bibdesk/BDSKTextImportController.m
trunk/bibdesk/BDSKWebView.m
Modified: trunk/bibdesk/BDSKTextImportController.m
===================================================================
--- trunk/bibdesk/BDSKTextImportController.m 2025-08-29 08:39:27 UTC (rev
29493)
+++ trunk/bibdesk/BDSKTextImportController.m 2025-08-29 08:45:47 UTC (rev
29494)
@@ -973,7 +973,7 @@
if (scheme != nil && host != nil)
return [NSString stringWithFormat:@"%@://%@", scheme, host];
NSString *string = [url absoluteString];
- NSUInteger l = [string rangeOfString:@"/"].location;
+ NSUInteger l = [string rangeOfCharacterFromSet:[NSCharacterSet
characterSetWithCharactersInString:@"/?#"]].location;
if (l != NSNotFound)
string = [string substringToIndex:l];
if ([NSString isEmptyString:string] == NO)
Modified: trunk/bibdesk/BDSKWebView.m
===================================================================
--- trunk/bibdesk/BDSKWebView.m 2025-08-29 08:39:27 UTC (rev 29493)
+++ trunk/bibdesk/BDSKWebView.m 2025-08-29 08:45:47 UTC (rev 29494)
@@ -658,7 +658,7 @@
if (scheme != nil && host != nil)
return [NSString stringWithFormat:@"%@://%@", scheme, host];
NSString *string = [url absoluteString];
- NSUInteger l = [string rangeOfString:@"/"].location;
+ NSUInteger l = [string rangeOfCharacterFromSet:[NSCharacterSet
characterSetWithCharactersInString:@"/?#"]].location;
if (l != NSNotFound)
string = [string substringToIndex:l];
if ([NSString isEmptyString:string] == NO)
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