diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/l10n/mk.js | 4 | ||||
-rw-r--r-- | lib/l10n/mk.json | 4 | ||||
-rw-r--r-- | lib/private/Files/View.php | 8 | ||||
-rw-r--r-- | lib/private/Share20/Manager.php | 6 | ||||
-rw-r--r-- | lib/private/legacy/db.php | 3 |
5 files changed, 16 insertions, 9 deletions
diff --git a/lib/l10n/mk.js b/lib/l10n/mk.js index 49741d2e850..2f375720ecf 100644 --- a/lib/l10n/mk.js +++ b/lib/l10n/mk.js @@ -75,7 +75,7 @@ OC.L10N.register( "File name contains at least one invalid character" : "Името на датотеката соджи невалиден карактер", "File name is too long" : "Името на датотеката е премногу долго", "Dot files are not allowed" : "Датотеки само со точки не се дозволени", - "Empty filename is not allowed" : "Датотеки без име не се дозболени", + "Empty filename is not allowed" : "Датотеки без име не се дозволени", "App \"%s\" cannot be installed because appinfo file cannot be read." : "Апликацијата \"%s\" неможе да се инсталира бидејќи датотеката appinfo неможе да се прочита.", "App \"%s\" cannot be installed because it is not compatible with this version of the server." : "Апликацијата \"%s\" неможе да се инсталира бидејќи не е компатибилна со верзијата на серверот.", "__language_name__" : "Македонски", @@ -198,7 +198,7 @@ OC.L10N.register( "PHP module %s not installed." : "PHP модулот %s не е инсталиран.", "Please ask your server administrator to install the module." : "Замолете го сервер администраторот да го инсталира додатокот.", "PHP setting \"%s\" is not set to \"%s\"." : "PHP поставката \"%s\" не е поставена до \"%s\".", - "Adjusting this setting in php.ini will make Nextcloud run again" : "Прилагодувањето на оваа поставка во php.ini ќе направи Nextcloud повторно да работи ", + "Adjusting this setting in php.ini will make Nextcloud run again" : "Прилагодувањето на оваа поставка во php.ini ќе направи повторно да работи ", "mbstring.func_overload is set to \"%s\" instead of the expected value \"0\"" : "mbstring.func_overload е поставено на \"%s\", очекувана вредност е \"0\"", "To fix this issue set <code>mbstring.func_overload</code> to <code>0</code> in your php.ini" : "За да го поправите ова, поставете вредност за <code>mbstring.func_overload</code> = <code>0</code> во вашата php.ini датотека", "libxml2 2.7.0 is at least required. Currently %s is installed." : "Потербна минимална верзија на libxml2 е 2.7.0. Моментална верзија е %s.", diff --git a/lib/l10n/mk.json b/lib/l10n/mk.json index f06967c5673..d8bd4482933 100644 --- a/lib/l10n/mk.json +++ b/lib/l10n/mk.json @@ -73,7 +73,7 @@ "File name contains at least one invalid character" : "Името на датотеката соджи невалиден карактер", "File name is too long" : "Името на датотеката е премногу долго", "Dot files are not allowed" : "Датотеки само со точки не се дозволени", - "Empty filename is not allowed" : "Датотеки без име не се дозболени", + "Empty filename is not allowed" : "Датотеки без име не се дозволени", "App \"%s\" cannot be installed because appinfo file cannot be read." : "Апликацијата \"%s\" неможе да се инсталира бидејќи датотеката appinfo неможе да се прочита.", "App \"%s\" cannot be installed because it is not compatible with this version of the server." : "Апликацијата \"%s\" неможе да се инсталира бидејќи не е компатибилна со верзијата на серверот.", "__language_name__" : "Македонски", @@ -196,7 +196,7 @@ "PHP module %s not installed." : "PHP модулот %s не е инсталиран.", "Please ask your server administrator to install the module." : "Замолете го сервер администраторот да го инсталира додатокот.", "PHP setting \"%s\" is not set to \"%s\"." : "PHP поставката \"%s\" не е поставена до \"%s\".", - "Adjusting this setting in php.ini will make Nextcloud run again" : "Прилагодувањето на оваа поставка во php.ini ќе направи Nextcloud повторно да работи ", + "Adjusting this setting in php.ini will make Nextcloud run again" : "Прилагодувањето на оваа поставка во php.ini ќе направи повторно да работи ", "mbstring.func_overload is set to \"%s\" instead of the expected value \"0\"" : "mbstring.func_overload е поставено на \"%s\", очекувана вредност е \"0\"", "To fix this issue set <code>mbstring.func_overload</code> to <code>0</code> in your php.ini" : "За да го поправите ова, поставете вредност за <code>mbstring.func_overload</code> = <code>0</code> во вашата php.ini датотека", "libxml2 2.7.0 is at least required. Currently %s is installed." : "Потербна минимална верзија на libxml2 е 2.7.0. Моментална верзија е %s.", diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 9aaa37feee9..6ce13d9ca51 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -663,7 +663,13 @@ class View { return false; } - $this->changeLock($path, ILockingProvider::LOCK_EXCLUSIVE); + try { + $this->changeLock($path, ILockingProvider::LOCK_EXCLUSIVE); + } catch (\Exception $e) { + // Release the shared lock before throwing. + $this->unlockFile($path, ILockingProvider::LOCK_SHARED); + throw $e; + } /** @var \OC\Files\Storage\Storage $storage */ list($storage, $internalPath) = $this->resolvePath($path); diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 348e0207d2f..5c1db638f7a 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -402,9 +402,9 @@ class Manager implements IManager { $expirationDate = new \DateTime(); $expirationDate->setTime(0,0,0); - $days = (int)$this->config->getAppValue('core', 'internal_defaultExpDays', $this->shareApiLinkDefaultExpireDays()); - if ($days > $this->shareApiLinkDefaultExpireDays()) { - $days = $this->shareApiLinkDefaultExpireDays(); + $days = (int)$this->config->getAppValue('core', 'internal_defaultExpDays', (string)$this->shareApiInternalDefaultExpireDays()); + if ($days > $this->shareApiInternalDefaultExpireDays()) { + $days = $this->shareApiInternalDefaultExpireDays(); } $expirationDate->add(new \DateInterval('P'.$days.'D')); } diff --git a/lib/private/legacy/db.php b/lib/private/legacy/db.php index 31e3c24ceb7..ae5ca7b6bda 100644 --- a/lib/private/legacy/db.php +++ b/lib/private/legacy/db.php @@ -101,7 +101,8 @@ class OC_DB { return true; } - \OC::$server->getLogger()->logException(new \Exception('Can not detect if query is manipulating: ' . $sql)); + // This is triggered with "SHOW VERSION" and some more, so until we made a list, we keep this out. + // \OC::$server->getLogger()->logException(new \Exception('Can not detect if query is manipulating: ' . $sql)); return false; } |