aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_Util.php
Commit message (Collapse)AuthorAgeFilesLines
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-2/+2
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* Remove version check for ancient libxml versionjld31032023-05-051-14/+0
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Read mtime of version.php only onceArthur Schiwon2023-04-211-3/+1
| | | | | | | - in most cases it would read again in \OC_Util::loadVersion anyway - remove some unused use statements Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-051-6/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix 32bits bigint support in Util/OC_HelperCôme Chilliet2023-02-071-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* composer run cs:fixCôme Chilliet2023-01-201-6/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use proper storage method for writing skeleton filesJulius Härtl2022-10-271-1/+1
| | | | | | otherwise the filecache will have a wrong size for skeleton files Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Cleanup tags and Share componentCarl Schwan2022-09-291-2/+7
| | | | | | | | | - Port to LoggerInterface - Use IDBConnection and IQueryBuilder instead of raw SQL and OC_DB - Use IEventListener instead of hooks - Remove the now unused OC_DB and OC_DB_StatementWrapper legacy utils Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix quota type to intCarl Schwan2022-09-121-1/+1
| | | | | | | | | Change the quota to int from float, since the quota is a number of bits and a bits can not be splitted. Fix #34010 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix psalm errors fron the end of the baseline fileCarl Schwan2022-05-161-18/+3
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* l10n: Correct a typoValdnet2022-04-281-1/+1
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* l10n: Fix codeValdnet2022-04-271-1/+1
| | | | | Issue: #32171. Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* Merge pull request #31492 from nextcloud/fix/check-secret-configuredJohn Molakvoæ2022-04-261-0/+9
|\
| * Only check if secret is set if the nextcloud is installedCarl Schwan2022-03-091-1/+1
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * Also check for instanceid and passwordhashCarl Schwan2022-03-091-5/+7
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * Require the secret config to be configuredCarl Schwan2022-03-081-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | If it's not configured the instance will look like it is working but various features will silently break (end to end encryption, setting alternate email and probably more). One issue is that changing the secret from empty to something will break various other stuff (app token). I don't think there is a good way to solve this issue other than breaking early instead of having to handle a painful migration later on. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Allow to disable password policy enforcement for selected groupsCarl Schwan2022-04-051-3/+4
| | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Co-authored-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* | move teardown logic to SetupManagerRobin Appelman2022-03-041-4/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | start moving filesystem setup logic to it's own placeRobin Appelman2022-03-041-137/+7
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | move root mount setup to mountprovidersRobin Appelman2022-02-241-104/+0
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* handle setupFS with null userRobin Appelman2022-02-091-4/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* dont mark fs as setup when no user is activeRobin Appelman2022-02-091-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* pass user object during fs initRobin Appelman2022-02-091-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only setup part of the filesystem for appdata requestsRobin Appelman2022-02-091-27/+44
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #30855 from nextcloud/psalm/themingJohn Molakvoæ2022-01-271-2/+3
|\
| * Fix psalm issues in theming appCarl Schwan2022-01-261-2/+3
| | | | | | | | | | | | | | | | After this change, we are down to only one psalm warning for this app and related to the Application.php. This also make composer psam:update-baseline not silently ignore new errors. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Add deprecation notice to script & addScript funcLouis Chemineau2022-01-271-1/+1
|/ | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* l10n: Add a text string to translationValdnet2021-12-201-1/+1
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* l10n: Add <code>Valdnet2021-12-151-1/+1
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* l10n: Add <code>Valdnet2021-12-151-1/+1
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* l10n: Separate words and add dotsValdnet2021-12-151-18/+18
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* Merge pull request #29527 from nextcloud/rakekniven-patch-1John Molakvoæ2021-12-041-1/+1
|\
| * Added dot at end of sentence.rakekniven2021-11-021-1/+1
| | | | | | | | | | The full message in the UI is composed by a few strings. Therefore the single parts needs an dot at the end. Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* | Allow scripts prioritization based on other appsJohn Molakvoæ (skjnldsv)2021-12-021-0/+4
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Merge pull request #29966 from nextcloud/feat/remove-isIEJohn Molakvoæ2021-11-301-13/+0
|\ \
| * | Remove isIE and associated legacy scriptsJohn Molakvoæ (skjnldsv)2021-11-301-13/+0
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | Remove iconv from dependencies and testsMichaIng2021-11-301-1/+0
|/ / | | | | | | | | | | which is not used anymore since: https://github.com/nextcloud/server/pull/29470 Signed-off-by: MichaIng <micha@dietpi.com>
* | OC_Util::isNonUTF8Locale: fix lint errorNaoto Kobayashi2021-11-161-5/+5
| | | | | | | | Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* | OC_Util::isSetLocaleWorking: fix typoNaoto Kobayashi2021-11-161-1/+1
| | | | | | | | Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* | OC_Util: Add fallbacks to check if current locale is UTF8Naoto Kobayashi2021-11-161-2/+17
| | | | | | | | | | | | | | | | | | Using escapeshellcmd to get current locale causes error if the function is disabled. Add fallbacks to prevent the error. Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* | Check whether setlocale works only after setlocaleNaoto Kobayashi2021-11-141-4/+5
| | | | | | | | Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* | Fix missing setlocale with php 8Naoto Kobayashi2021-11-141-2/+2
|/ | | | | | | | | When php version = 8, basename('§') does not bug even if LC_ALL is non-UTF-8 locale. This cause OC_Util::isSetLocaleWorking() to skip setlocale("C.UTF-8"). Fix it by using escapeshellcmd instead of basename. Signed-off-by: Naoto Kobayashi <naoto.kobayashi4c@gmail.com>
* Merge branch 'master' into enhancement/noid/IURLGenerator-linkToDefaultPageUrlDaniel Rudolf2021-08-041-5/+7
|\
| * Migrate HintException to OCPGary Kim2021-06-301-5/+7
| | | | | | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* | Fix UtilTest::testDefaultApps()Daniel Rudolf2021-07-011-0/+1
| | | | | | | | | | | | Oh wow... This definitly was no best practice... :unamused: Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
* | Remove \OC::$server->getURLGenerator() usageDaniel Rudolf2021-07-011-1/+2
| | | | | | | | Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
* | Remove unused importsDaniel Rudolf2021-06-301-1/+0
| | | | | | | | Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
* | Add IUrlGenerator::linkToDefaultPageUrl()Daniel Rudolf2021-06-301-39/+1
|/ | | | | | Replaces the deprecated \OC_Util::getDefaultPageUrl() and makes this API public. Signed-off-by: Daniel Rudolf <github.com@daniel-rudolf.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* l10n: Spelling unificationValdnet2021-06-021-1/+1
| | | | | | Spelling unification in Transifex. Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>