mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 17:14:36 +01:00
added some trim's around name, template and lang so that whitespace gets not saved
This commit is contained in:
parent
a5a5d245d8
commit
3d394c5b50
@ -165,7 +165,7 @@
|
||||
{
|
||||
case 'vbox':
|
||||
case 'hbox':
|
||||
case 'stack':
|
||||
case 'deck':
|
||||
$cell['cell_tpl'] = '.vbox';
|
||||
break;
|
||||
}
|
||||
@ -243,7 +243,7 @@
|
||||
{
|
||||
case 'vbox':
|
||||
case 'hbox':
|
||||
case 'stack':
|
||||
case 'deck':
|
||||
if ($cell['size'] < 2)
|
||||
{
|
||||
$cell['size'] = 2;
|
||||
@ -443,7 +443,7 @@
|
||||
{
|
||||
$this->etemplate->modified = time();
|
||||
}
|
||||
$ok = $this->etemplate->save($content['name'],$content['template'],$content['lang'],$content['group'],$content['version']);
|
||||
$ok = $this->etemplate->save(trim($content['name']),trim($content['template']),trim($content['lang']),intval($content['group']),trim($content['version']));
|
||||
$msg = $this->messages[$ok ? 'saved' : 'error_writing'];
|
||||
}
|
||||
elseif ($content['show'])
|
||||
|
Loading…
Reference in New Issue
Block a user