summaryrefslogtreecommitdiff
path: root/WebMail.c
diff options
context:
space:
mode:
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)
{