Trim trailing whitespace from version.
This commit is contained in:
parent
9e6d2f2f82
commit
b182e6c86a
|
@ -381,7 +381,7 @@ class OC_App{
|
||||||
$file= self::getAppPath($appid).'/appinfo/version';
|
$file= self::getAppPath($appid).'/appinfo/version';
|
||||||
$version=@file_get_contents($file);
|
$version=@file_get_contents($file);
|
||||||
if($version){
|
if($version){
|
||||||
return $version;
|
return trim($version);
|
||||||
}else{
|
}else{
|
||||||
$appData=self::getAppInfo($appid);
|
$appData=self::getAppInfo($appid);
|
||||||
return $appData['version'];
|
return $appData['version'];
|
||||||
|
|
Loading…
Reference in New Issue