Fix for bug #429394 - trailing spaces in application (name,title)

This commit is contained in:
skeeter 2001-06-03 12:59:09 +00:00
parent 8a855989a5
commit ebae457a26
2 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,9 @@
$totalerrors = 0;
$n_app_name = chop($n_app_name);
$n_app_title = chop($n_app_title);
if (! $n_app_name)
{
$error[$totalerrors++] = lang('You must enter an application name.');

View File

@ -44,6 +44,9 @@
$app_order = 0;
}
$n_app_name = chop($n_app_name);
$n_app_title = chop($n_app_title);
$phpgw->db->query("select count(*) from phpgw_applications where app_name='"
. addslashes($n_app_name) . "'",__LINE__,__FILE__);
$phpgw->db->next_record();