Skip to content
Snippets Groups Projects
Commit e0dc7e46 authored by rswindell's avatar rswindell
Browse files

Split paths on forward slashes or backslashes.

parent 744dc710
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
load("../web/lib/template.ssjs");
load("../web/lib/mime_decode.ssjs");
var path=http_request.path_info.split(/\//);
var path=http_request.path_info.split(/[\\\/]/);
if(path==undefined) {
error("No path info!");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment