solidusjs / solidus

A simple server that generates pages from JSON and Templates
MIT License
28 stars 7 forks source link

properly escape windows paths #86

Closed Fauntleroy closed 10 years ago

Fauntleroy commented 10 years ago

Windows uses \ as its path separator by default, so anything passed through the native node.js path methods spits out an unexpectedly backslashy string. Luckily we can get around this problem by being as slash-nostic as possible. There were two basic steps in the final solution: