Show wrapper automatically if wrapper nonce is invalid
This commit is contained in:
parent
7dbc323f76
commit
3c46f60042
1 changed files with 2 additions and 1 deletions
|
@ -118,7 +118,8 @@ class UiRequest(object):
|
||||||
return self.actionSiteAdd()
|
return self.actionSiteAdd()
|
||||||
# Site media wrapper
|
# Site media wrapper
|
||||||
else:
|
else:
|
||||||
if self.get.get("wrapper_nonce"):
|
if self.get.get("wrapper_nonce") and self.get["wrapper_nonce"] in self.server.wrapper_nonces:
|
||||||
|
self.server.wrapper_nonces.remove(self.get["wrapper_nonce"])
|
||||||
return self.actionSiteMedia("/media" + path) # Only serve html files with frame
|
return self.actionSiteMedia("/media" + path) # Only serve html files with frame
|
||||||
else:
|
else:
|
||||||
body = self.actionWrapper(path)
|
body = self.actionWrapper(path)
|
||||||
|
|
Loading…
Reference in a new issue