-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
misunderstood URLs #921
Comments
I think this is more a problem with the URLWithString: method than Quicksilver itself. Clearly that URL is not a valid URL as defined by the RFC 2396 From the Apple NSURL docs:
It appears the 2nd # is the problem. I think it is a valid URL, but don't know. Perhaps it's worth asking somewhere else on the URL. It could be a bug with Note: fixing it in that one place won't fix the problem. E.g. in QSObject_StringHandling in the Should #896 now be closed? |
Well, obviously. :-)
As they say, “be prepared to handle” this case, so I propose that if a scheme can't be found, we split on
Good point. So maybe we should add a method in
It doesn't paste, but it it doesn't crash any more, so I've closed it. |
Certain URLs aren’t handled correctly by
QSObject(URLHandling)
.For example: https://developer.apple.com/library/mac/#featuredarticles/BuildingWithBlocks/_index.html#//apple_ref/doc/uid/TP40010249 will end up with “http://” prepended to it.
NSURL URLWithString:
is to blame. It doesn’t parse the URL, so the scheme appears to be missing.A possible fix is to split the URL on
#
and then check for a scheme in the first item.I’ll fix this after 64bit-support is merged.
The text was updated successfully, but these errors were encountered: