Skip to content

Commit eeee3a8

Browse files
committed
Replace backslashes with forward slashes on Windows when reading cwd.
1 parent b29f50b commit eeee3a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

context.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ namespace Sass {
281281
char wd[wd_len];
282282
string cwd = getcwd(wd, wd_len);
283283
if (cwd[cwd.length() - 1] != '/') cwd += '/';
284+
replace(begin(cwd), end(cwd), '\\', '/'); //convert Windows backslashes to URL forward slashes
284285
return cwd;
285286
}
286287

0 commit comments

Comments
 (0)