Skip to content

Commit

Permalink
hostnameBlacklist: PY2 needs no changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mauritsvanrees committed Sep 23, 2020
1 parent bbed30e commit 8a67c21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plone/app/theming/browser/controlpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def site_url(self):
@property
def hostname_blacklist(self):
hostname_blacklist = self.request.get('hostnameBlacklist', [])
if six.PY2:
return hostname_blacklist
return [safe_nativestring(host) for host in hostname_blacklist]

def __call__(self):
Expand Down

0 comments on commit 8a67c21

Please sign in to comment.