From 0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a Mon Sep 17 00:00:00 2001 From: "mkanat%kerio.com" <> Date: Wed, 9 Mar 2005 08:26:38 +0000 Subject: Bug 284975: Any code after Throw*Error is a dead code. Patch By Tomas Kopal r=LpSolit, a=myk --- editkeywords.cgi | 6 ------ 1 file changed, 6 deletions(-) (limited to 'editkeywords.cgi') diff --git a/editkeywords.cgi b/editkeywords.cgi index 9c835e8b7..4f4cf4bd5 100755 --- a/editkeywords.cgi +++ b/editkeywords.cgi @@ -37,15 +37,12 @@ sub Validate ($$) { my ($name, $description) = @_; if ($name eq "") { ThrowUserError("keyword_blank_name"); - exit; } if ($name =~ /[\s,]/) { ThrowUserError("keyword_invalid_name"); - exit; } if ($description eq "") { ThrowUserError("keyword_blank_description"); - exit; } } @@ -124,7 +121,6 @@ if ($action eq 'new') { if (FetchOneColumn()) { $vars->{'name'} = $name; ThrowUserError("keyword_already_exists"); - exit; } @@ -183,7 +179,6 @@ if ($action eq 'edit') { if (!$name) { $vars->{'id'} = $id; ThrowCodeError("invalid_keyword_id", $vars); - exit; } SendSQL("SELECT count(*) @@ -227,7 +222,6 @@ if ($action eq 'update') { if ($tmp && $tmp != $id) { $vars->{'name'} = $name; ThrowUserError("keyword_already_exists", $vars); - exit; } SendSQL("UPDATE keyworddefs SET name = " . SqlQuote($name) . -- cgit v1.2.3-24-g4f1b