(self, path)
| 648 | return self.actionRedirect(post["url"]) |
| 649 | |
| 650 | def actionSiteAddPrompt(self, path): |
| 651 | path_parts = self.parsePath(path) |
| 652 | if not path_parts or not self.server.site_manager.isAddress(path_parts["address"]): |
| 653 | return self.error404(path) |
| 654 | |
| 655 | self.sendHeader(200, "text/html", noscript=True) |
| 656 | template = open("src/Ui/template/site_add.html").read() |
| 657 | template = template.replace("{url}", html.escape(self.env["PATH_INFO"])) |
| 658 | template = template.replace("{address}", path_parts["address"]) |
| 659 | template = template.replace("{add_nonce}", self.getAddNonce()) |
| 660 | return template |
| 661 | |
| 662 | def replaceHtmlVariables(self, block, path_parts): |
| 663 | user = self.getCurrentUser() |
no test coverage detected