mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Trying one more thing
This commit is contained in:
parent
6f510976f0
commit
9f939ae40e
@ -2,7 +2,7 @@ import json
|
||||
import logging
|
||||
import os
|
||||
import time
|
||||
from pathlib import PurePath, PurePosixPath
|
||||
from pathlib import PurePosixPath
|
||||
import tornado.web
|
||||
import tornado.escape
|
||||
import bleach
|
||||
@ -320,7 +320,7 @@ class ServerHandler(BaseHandler):
|
||||
return
|
||||
import_type = bleach.clean(self.get_argument("create_type", ""))
|
||||
import_server_path = bleach.clean(self.get_argument("server_path", ""))
|
||||
if PurePath(self.controller.project_root).is_relative_to(
|
||||
if PurePosixPath(self.controller.project_root).is_relative_to(
|
||||
import_server_path
|
||||
):
|
||||
self.redirect(
|
||||
@ -478,7 +478,7 @@ class ServerHandler(BaseHandler):
|
||||
return
|
||||
import_type = bleach.clean(self.get_argument("create_type", ""))
|
||||
import_server_path = bleach.clean(self.get_argument("server_path", ""))
|
||||
if PurePath(self.controller.project_root).is_relative_to(
|
||||
if PurePosixPath(self.controller.project_root).is_relative_to(
|
||||
import_server_path
|
||||
):
|
||||
self.redirect(
|
||||
|
Loading…
Reference in New Issue
Block a user