diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-05-21 21:33:52 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-05-21 21:33:52 +0100 |
| commit | 0d3ee7fd56efa24ba652fbc17f98dd10458e8054 (patch) | |
| tree | 3ee81c17c041f6aeba3492c805c11ed0192839dc /WebMail.c | |
| parent | 96197688e7b79553d45e0b6a5e760c2d80604862 (diff) | |
New upstream version 6.0.24.71+repackupstream/6.0.24.71+repack
Diffstat (limited to 'WebMail.c')
| -rw-r--r-- | WebMail.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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)
{
|
