Skip to content

Commit 785d235

Browse files
committed
Rev4536, Fix Cors permission request for connecting site
1 parent 9d1bed1 commit 785d235

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/Cors/CorsPlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def actionOptionalFileInfo(self, to, inner_path, *args, **kwargs):
7676
def actionCorsPermission(self, to, address):
7777
site = self.server.sites.get(address)
7878
if site:
79-
site_name = site.content_manager.contents.get("content.json", {}).get("title")
79+
site_name = site.content_manager.contents.get("content.json", {}).get("title", address)
8080
button_title = _["Grant"]
8181
else:
8282
site_name = address

src/Config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Config(object):
1414

1515
def __init__(self, argv):
1616
self.version = "0.7.2"
17-
self.rev = 4533
17+
self.rev = 4536
1818
self.argv = argv
1919
self.action = None
2020
self.test_parser = None

0 commit comments

Comments
 (0)