Merge pull request #1239 from ZoneMinder/trim_when_saving

use trim on values when saving.
This commit is contained in:
Andrew Bauer 2016-02-04 08:29:02 -06:00
commit cbe88d0a3f
1 changed files with 1 additions and 1 deletions

View File

@ -792,7 +792,7 @@ function getFormChanges( $values, $newValues, $types=false, $columns=false )
{
if ( !isset($values[$key]) || ($values[$key] != $value) )
{
$changes[$key] = "$key = ".dbEscape($value);
$changes[$key] = "$key = ".dbEscape(trim($value));
}
break;
}