Skip to content

Commit ef3eadb

Browse files
committed
Only replace backslashes with forwards slashes on Windows because backslashes are valid in Linux paths.
1 parent eeee3a8 commit ef3eadb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

context.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,9 @@ namespace Sass {
281281
char wd[wd_len];
282282
string cwd = getcwd(wd, wd_len);
283283
if (cwd[cwd.length() - 1] != '/') cwd += '/';
284+
#ifdef _WIN32
284285
replace(begin(cwd), end(cwd), '\\', '/'); //convert Windows backslashes to URL forward slashes
286+
#endif
285287
return cwd;
286288
}
287289

0 commit comments

Comments
 (0)