summaryrefslogtreecommitdiff
path: root/WebMail.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-05-21 21:33:54 +0100
committerDave Hibberd <hibby@debian.org>2025-05-21 21:33:54 +0100
commit3ecb593511b18e6bd2eb768160c5a85633ab1da6 (patch)
tree0a6cb528674898a0c11953fbe766f55e1dc54164 /WebMail.c
parent96197688e7b79553d45e0b6a5e760c2d80604862 (diff)
parent0d3ee7fd56efa24ba652fbc17f98dd10458e8054 (diff)
Update upstream source from tag 'upstream/6.0.24.71+repack'
Update to upstream version '6.0.24.71+repack' with Debian dir d79186aef0fff313e53c27b3f3fadf9c0193c56a
Diffstat (limited to 'WebMail.c')
-rw-r--r--WebMail.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/WebMail.c b/WebMail.c
index 90ae26a..6510618 100644
--- a/WebMail.c
+++ b/WebMail.c
@@ -3073,6 +3073,13 @@ VOID GetPage(struct HTTPConnectionInfo * Session, char * NodeURL)
ptr = strchr(&NodeURL[17], ',');
Dir = HtmlFormDirs[DirNo];
+
+ if (DirNo == -1)
+ {
+ *WebMail->RLen = sprintf(WebMail->Reply, "<html><script>alert(\"No Page Selected. \");window.location.href = '/Webmail/NewMsg?%s';</script></html>", Session->Key);
+ return;
+ }
+
SubDir = strlop(&NodeURL[17], ':');
if (SubDir)
{