summaryrefslogtreecommitdiffstats
path: root/editkeywords.cgi
diff options
context:
space:
mode:
authormkanat%kerio.com <>2005-03-09 09:26:38 +0100
committermkanat%kerio.com <>2005-03-09 09:26:38 +0100
commit0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a (patch)
tree93f5ab09d20a212b8ba499e2cf59756aaad3b902 /editkeywords.cgi
parent5b1b54e9b96da06b6802f79108a20080f7f93f18 (diff)
downloadbugzilla-0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a.tar.gz
bugzilla-0b7d9e7f772ee107d0cb1816d6c5cb679ae6e01a.tar.xz
Bug 284975: Any code after Throw*Error is a dead code.
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=LpSolit, a=myk
Diffstat (limited to 'editkeywords.cgi')
-rwxr-xr-xeditkeywords.cgi6
1 files changed, 0 insertions, 6 deletions
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) .