Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-06-24 03:57:08 +0400
committerArthur Schiwon <blizzz@owncloud.com>2012-09-26 13:33:14 +0400
commitca216b529647f6ee2c9d9756d2cd9d213c149e29 (patch)
tree157f07853eecda7c6a094a8ebc819bfc7027681d /lib
parentc212d118baead2237157f5edc93b5d110f08fb3b (diff)
Trim trailing whitespace from version.
Diffstat (limited to 'lib')
-rw-r--r--lib/app.php2
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'];