]> source.dussan.org Git - nextcloud-server.git/commitdiff
Trim trailing whitespace from version.
authorThomas Tanghus <thomas@tanghus.net>
Sat, 23 Jun 2012 23:57:08 +0000 (01:57 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Sun, 24 Jun 2012 13:07:44 +0000 (15:07 +0200)
lib/app.php

index 84d17957def88132fae3c309f468866b759a04df..b337c55ec605864f09c1d906fa48fc337983267d 100755 (executable)
@@ -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'];