web: only delete channels, notes, keys and certs on POST

This commit is contained in:
Alhuda Khan committed 2026-10-26 19:15:53 +05:30
1 parent 9962274521
commit 8dc96ae08c
9 files changed
+124 -10

No files matched your search

+3 -1
View File
@@ -375,7 +375,9 @@ class CSSLClientCertMod : public CModule {
WebSock.Redirect(GetWebPath());
return true;
} else if (sPageName == "delete") {
DelKey(*pUser, WebSock.GetParam("key", false));
if (WebSock.IsPost()) {
DelKey(*pUser, WebSock.GetParam("key"));
}
WebSock.Redirect(GetWebPath());
return true;
}