Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
8d7910ce
"docs/source/vscode:/vscode.git/clone" did not exist on "c827e94da08bff143b8f364b53fbea998855ea0a"
Unverified
Commit
8d7910ce
authored
Feb 25, 2024
by
僵尸浩
Committed by
GitHub
Feb 25, 2024
Browse files
disable follow_symlinks in static serving for security reason (#2902)
parent
4a7e751c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
server.py
server.py
+2
-2
No files found.
server.py
View file @
8d7910ce
...
@@ -539,11 +539,11 @@ class PromptServer():
...
@@ -539,11 +539,11 @@ class PromptServer():
for
name
,
dir
in
nodes
.
EXTENSION_WEB_DIRS
.
items
():
for
name
,
dir
in
nodes
.
EXTENSION_WEB_DIRS
.
items
():
self
.
app
.
add_routes
([
self
.
app
.
add_routes
([
web
.
static
(
'/extensions/'
+
urllib
.
parse
.
quote
(
name
),
dir
,
follow_symlinks
=
True
),
web
.
static
(
'/extensions/'
+
urllib
.
parse
.
quote
(
name
),
dir
),
])
])
self
.
app
.
add_routes
([
self
.
app
.
add_routes
([
web
.
static
(
'/'
,
self
.
web_root
,
follow_symlinks
=
True
),
web
.
static
(
'/'
,
self
.
web_root
),
])
])
def
get_queue_info
(
self
):
def
get_queue_info
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment