From 106b35eb9656dfb644fa9be0b291f59fd318fbe8 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sun, 20 May 2007 13:42:27 +0000 Subject: [PATCH] Fix SF#1696437 by prohibiting not-all-alphabetic pseudo commands. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1805 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/ircd_parser.y | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0490238..d48d095 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-05-20 Michael Poole + + * ircd/ircd_parser.y (pseudoblock): Forbid pseudo commands that + are not all alphabetic characters. + 2007-05-20 Michael Poole * configure.in (maxcon): Check that maximum connections is diff --git a/ircd/ircd_parser.y b/ircd/ircd_parser.y index ccef4a7..e3dd329 100644 --- a/ircd/ircd_parser.y +++ b/ircd/ircd_parser.y @@ -1090,6 +1090,8 @@ pseudoitems '}' ';' parse_error("Missing name in pseudo %s block", smap->command); else if (!smap->services) parse_error("Missing nick in pseudo %s block", smap->command); + else if (!strIsAlpha(smap->command)) + parse_error("Pseudo command %s invalid: must all be letters", smap->command); else valid = 1; if (valid && register_mapping(smap)) -- 2.20.1