Fix, do strtolower on types filename|md5 and filename|sha1 conform types

md5 and sha1.
pull/61/head
noud 2012-07-11 14:35:46 +02:00
parent 25d33e3578
commit 5c1a8e22fb
1 changed files with 5 additions and 0 deletions

View File

@ -329,6 +329,11 @@ class Attribute extends AppModel {
case 'hostname':
$this->data['Attribute']['value'] = strtolower($this->data['Attribute']['value']);
break;
case 'filename|md5':
case 'filename|sha1':
$pieces = explode('|', $this->data['Attribute']['value']);
$this->data['Attribute']['value'] = $pieces[0].'|'.strtolower($pieces[1]);
break;
}
// generate UUID if it doesn't exist