aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Util.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: move implementation to non-deprecated OCP\Util from OC_Helperchore/move-impl-utilFerdinand Thiessen2025-05-161-5/+39
| | | | | | | | Only moves the implementation where it was already existing and adds more helpful deprecation messages. This way we can in the future just remove the OC_Helper variants. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor: migrate from OC to OCP in public interfacesrefactor/ocp-deprecationsFerdinand Thiessen2025-05-151-11/+11
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: replace leagcy OC_Helper calls with OCP\Utilchore/oc-helper-filesizeFerdinand Thiessen2025-05-141-4/+55
| | | | | | | | - Replace legacy calls with OCP\Util - Add missing deprecation notices - Inline implementation in OCP\Util and call it from OC_Helper Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Fix types for sharingDisabledForUserCôme Chilliet2025-04-071-7/+4
| | | | | | and use the non-deprecated version whenever possible Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Remove some call and references to deprecated OC_Util classCôme Chilliet2025-04-071-5/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Fix signatures and types in template related classesCôme Chilliet2025-03-061-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Replace all usage of OC_Template by the new APICôme Chilliet2025-03-061-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Add missing ITemplate interface and clean code in Template classCôme Chilliet2025-03-061-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(legacy): Introduce public version ct plass and drop version methods ↵clean/version-ocpJulius Knorr2024-09-201-4/+6
| | | | | | from OC_Util Signed-off-by: Julius Knorr <jus@bitgrid.net>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-2/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* refactor: Remove deprecated `Util` function for filename validation to ↵Ferdinand Thiessen2024-07-161-34/+0
| | | | | | `FilenameValidator` Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge branch 'master' into refactor/OC-Server-getCsrfTokenManagerJohn Molakvoæ2024-05-301-1/+2
|\ | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * Merge branch 'master' into refactor/OC-Server-getL10NFactoryJohn Molakvoæ2024-05-301-1/+2
| |\ | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | chore: fix missing semi-colon in refactorJohn Molakvoæ2024-05-301-1/+1
| | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | Merge branch 'master' into refactor/OC-Server-getL10NFactoryJohn Molakvoæ2024-05-301-77/+74
| |\ \ | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | | Refactor `OC\Server::getL10NFactory`Andrew Summers2023-08-291-1/+2
| | | | | | | | | | | | | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* | | | Merge branch 'master' into refactor/OC-Server-getCsrfTokenManagerJohn Molakvoæ2024-05-301-1/+2
|\ \ \ \ | | |_|/ | |/| | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | | chore: fix duplicate php importJohn Molakvoæ2024-05-301-1/+0
| | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | | Merge branch 'master' into refactor/OC-Server-getMailerJohn Molakvoæ2024-05-301-76/+74
| |\ \ \ | | | |/ | | |/| Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | | Refactor `OC\Server::getMailer`Andrew Summers2023-08-291-1/+2
| | |/ | |/| | | | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* | | Merge branch 'master' into refactor/OC-Server-getCsrfTokenManagerJohn Molakvoæ2024-05-301-77/+74
|\ \ \ | | |/ | |/| Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | chore: Add SPDX headerAndy Scherzinger2024-05-241-41/+5
| | | | | | | | | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
| * | fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | fix: php-csskjnldsv2024-03-151-2/+1
| | | | | | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
| * | Merge branch 'master' into refactor/OC-Server-getShareManagerJohn Molakvoæ2024-03-151-33/+66
| |\ \ | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| | * | fix: Also expose forbidden filename character in the capabilitiesFerdinand Thiessen2024-02-281-2/+3
| | | | | | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| | * | fix: Enforce forbidden filename characters on backendFerdinand Thiessen2024-02-281-1/+22
| | | | | | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| | * | Use OCP\Util::getL10N instead of OC::$server->getL10NCôme Chilliet2024-02-051-5/+2
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| | * | fix(l10n): fix translations for init scriptsJohn Molakvoæ2023-12-081-2/+14
| | | | | | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
| | * | chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
| | * | Remove deprecated methods Util::writeLog and DIContainer::logCôme Chilliet2023-09-251-13/+0
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| | * | feat: Add dedicated method to load init scriptsJulius Härtl2023-09-071-11/+26
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Co-authored-by: John Molakvoæ <skjnldsv@protonmail.com> Update lib/public/Util.php Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * / Refactor `OC\Server::getShareManager`Andrew Summers2023-08-291-2/+3
| |/ | | | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* / Refactor `OC\Server::getCsrfTokenManager`Andrew Summers2023-08-291-1/+2
|/ | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* add core fileclient script before othersRobin Appelman2023-08-171-2/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* don't always add core/common and core/main during "sorting"Robin Appelman2023-08-171-1/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: Replace \OC::$server->query with \OCP\Server::get in /libChristoph Wurst2023-07-061-2/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Refactors "strpos" calls in lib/public to improve code readability.Faraz Samapoor2023-06-051-1/+1
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* chore: remove check for suhosin.executor.func.blacklistDaniel Kesselberg2023-06-021-5/+0
| | | | | | | | Suhosin is/was a PHP extension. The last release was 2015-05-21. Suhosin does not support PHP 8. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore(ocp)!: Drop \OCP\Util::linkToPublicChristoph Wurst2023-06-011-15/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix typos in lib/public subdirectorySimon L2023-05-101-2/+2
| | | | | | | | | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/public` Signed-off-by: luz paz <luzpaz@github.com> Update lib/public/Accounts/IAccount.php Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: Simon L <szaimen@e.mail.de> Co-Authored-By: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* Removed catch of ValueError as we cannot know if it’s >2038 or <1970Côme Chilliet2023-02-071-1/+1
| | | | | | Also fixed numericToString to correctly convert float to int if it fits Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix 32bits bigint support in Util/OC_HelperCôme Chilliet2023-02-071-13/+13
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add helper to cast to int|float, fix MemoryInfo on 32bitsCôme Chilliet2023-02-071-0/+11
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Replace getSystemValue with getSystemValueStringJ0WI2022-12-051-3/+3
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Remove some constants and functions which have been long deprecatedCôme Chilliet2022-09-301-21/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Move findBinaryFinder and isFunctionEnabled away from OC_HelperCarl Schwan2022-08-231-0/+24
| | | | | | | | | | | | findBinaryFinder is now a service that is still private but with some minor optimization (remove the hasKey check). isFunctionEnabled is now in OCP\Util Both function are still keep but all internal usage in nextcloud/server were migrated to the new usage, so that we can remove it in 26 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix psalm errors fron the end of the baseline fileCarl Schwan2022-05-161-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Allow to disable password policy enforcement for selected groupsCarl Schwan2022-04-051-3/+5
| | | | | | 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>