mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02:00
Fix for bug #429394 - trailing spaces in application (name,title)
This commit is contained in:
parent
8a855989a5
commit
ebae457a26
@ -50,6 +50,9 @@
|
|||||||
|
|
||||||
$totalerrors = 0;
|
$totalerrors = 0;
|
||||||
|
|
||||||
|
$n_app_name = chop($n_app_name);
|
||||||
|
$n_app_title = chop($n_app_title);
|
||||||
|
|
||||||
if (! $n_app_name)
|
if (! $n_app_name)
|
||||||
{
|
{
|
||||||
$error[$totalerrors++] = lang('You must enter an application name.');
|
$error[$totalerrors++] = lang('You must enter an application name.');
|
||||||
|
@ -44,6 +44,9 @@
|
|||||||
$app_order = 0;
|
$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='"
|
$phpgw->db->query("select count(*) from phpgw_applications where app_name='"
|
||||||
. addslashes($n_app_name) . "'",__LINE__,__FILE__);
|
. addslashes($n_app_name) . "'",__LINE__,__FILE__);
|
||||||
$phpgw->db->next_record();
|
$phpgw->db->next_record();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user