Trim trailing whitespace from version.

remotes/origin/stable45
Thomas Tanghus 2012-06-24 01:57:08 +07:00
parent 9e6d2f2f82
commit b182e6c86a
1 changed files with 1 additions and 1 deletions

@ -381,7 +381,7 @@ class OC_App{
$file= self::getAppPath($appid).'/appinfo/version';
$version=@file_get_contents($file);
if($version){
return $version;
return trim($version);
}else{
$appData=self::getAppInfo($appid);
return $appData['version'];