Merge branch 'master' of gitorious.org:owncloud/owncloud

This commit is contained in:
Frank Karlitschek 2012-06-05 12:52:44 +02:00
commit 80fc01388a
1 changed files with 3 additions and 3 deletions

View File

@ -79,19 +79,19 @@ class OC_MEDIA_SCANNER{
OCP\Util::writeLog('media',"error reading artist tag in '$file'",OCP\Util::WARN); OCP\Util::writeLog('media',"error reading artist tag in '$file'",OCP\Util::WARN);
$artist='unknown'; $artist='unknown';
}else{ }else{
$artist=stripslashes($data['comments']['artist'][0]); $artist=strip_tags(stripslashes($data['comments']['artist'][0]));
} }
if(!isset($data['comments']['album'])){ if(!isset($data['comments']['album'])){
OCP\Util::writeLog('media',"error reading album tag in '$file'",OCP\Util::WARN); OCP\Util::writeLog('media',"error reading album tag in '$file'",OCP\Util::WARN);
$album='unknown'; $album='unknown';
}else{ }else{
$album=stripslashes($data['comments']['album'][0]); $album=strip_tags(stripslashes($data['comments']['album'][0]));
} }
if(!isset($data['comments']['title'])){ if(!isset($data['comments']['title'])){
OCP\Util::writeLog('media',"error reading title tag in '$file'",OCP\Util::WARN); OCP\Util::writeLog('media',"error reading title tag in '$file'",OCP\Util::WARN);
$title='unknown'; $title='unknown';
}else{ }else{
$title=stripslashes($data['comments']['title'][0]); $title=strip_tags(stripslashes($data['comments']['title'][0]));
} }
$size=$data['filesize']; $size=$data['filesize'];
if (isset($data['comments']['track'])) if (isset($data['comments']['track']))