We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
resolve_relative_path
1 parent 6d5b6b2 commit be20a61Copy full SHA for be20a61
src/file.cpp
@@ -215,7 +215,9 @@ namespace Sass {
215
if (proto && uri[proto] == ':') ++ proto;
216
}
217
218
- if (proto && uri[proto++] == '/') return uri;
+ // distinguish between windows absolute paths and valid protocols
219
+ // we assume that protocols must at least have two chars to be valid
220
+ if (proto && uri[proto++] == '/' && proto > 3) return uri;
221
222
#ifdef _WIN32
223
// absolute link must have a drive letter, and we know that we
0 commit comments