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
Expand accepted windows URIs to support UNC paths #2237
Conversation
…NC paths can be used.
This pull request has been linked to Clubhouse Story #6445: file:// uri checking too restrictive. |
Apart from testing I've done, @ihnorton has experimentally looked at this functionality and sees it as an improvement. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will fix #2182
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one minor typo, sorry
test/src/unit-uri.cc
Outdated
@@ -74,8 +74,12 @@ TEST_CASE("URI: Test file URIs", "[uri]") { | |||
CHECK(!uri.is_invalid()); | |||
CHECK(URI::is_file(uri.to_string())); | |||
CHECK(uri.to_string() == "file:///path"); | |||
#ifndef _WIN32 | |||
// note: "file://path" is an accepted URI form on windows for UNC | |||
// level share viewing,but expected .is_invalid() on *nx. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
*nx
-> *nix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done (and a space added after a comma in same comment.)
Expand accepted windows URIs to allow access to commonly used windows UNC paths.
(Changes made are conditionally specific to _WIN32 so *nix URI processing should not be affected.)
TYPE: BUG
DESC: Expand accepted windows URIs.