diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-06-24 03:57:08 +0400 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-09-26 13:33:14 +0400 |
commit | ca216b529647f6ee2c9d9756d2cd9d213c149e29 (patch) | |
tree | 157f07853eecda7c6a094a8ebc819bfc7027681d | |
parent | c212d118baead2237157f5edc93b5d110f08fb3b (diff) |
Trim trailing whitespace from version.
-rw-r--r-- | lib/app.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/app.php b/lib/app.php index e57e1e58a28..449ae3fd9d7 100644 --- a/lib/app.php +++ b/lib/app.php @@ -359,7 +359,7 @@ class OC_App{ $file=OC::$APPSROOT.'/apps/'.$appid.'/appinfo/version'; $version=@file_get_contents($file); if($version){ - return $version; + return trim($version); }else{ $appData=self::getAppInfo($appid); return $appData['version']; |