mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-25 17:11:59 +00:00
Escape more symbols in path handling.
This commit is contained in:
parent
479c0c59bc
commit
177e4cd224
@ -223,9 +223,13 @@ void lsDocumentUri::SetPath(const std::string& path) {
|
||||
"%3A");
|
||||
}
|
||||
|
||||
// subset of reserved characters from the URI standard
|
||||
// http://www.ecma-international.org/ecma-262/6.0/#sec-uri-syntax-and-semantics
|
||||
raw_uri = ReplaceAll(raw_uri, " ", "%20");
|
||||
raw_uri = ReplaceAll(raw_uri, "(", "%28");
|
||||
raw_uri = ReplaceAll(raw_uri, ")", "%29");
|
||||
raw_uri = ReplaceAll(raw_uri, "#", "%23");
|
||||
raw_uri = ReplaceAll(raw_uri, ",", "%2C");
|
||||
|
||||
// TODO: proper fix
|
||||
#if defined(_WIN32)
|
||||
|
Loading…
Reference in New Issue
Block a user