aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php6
-rw-r--r--lib/composer/composer/autoload_classmap.php1
-rw-r--r--lib/composer/composer/autoload_static.php1
-rw-r--r--lib/l10n/bg.js1
-rw-r--r--lib/l10n/bg.json1
-rw-r--r--lib/l10n/gl.js2
-rw-r--r--lib/l10n/gl.json2
-rw-r--r--lib/l10n/nl.js1
-rw-r--r--lib/l10n/nl.json1
-rw-r--r--lib/l10n/ru.js63
-rw-r--r--lib/l10n/ru.json63
-rw-r--r--lib/l10n/sw.js1
-rw-r--r--lib/l10n/sw.json1
-rw-r--r--lib/private/App/AppManager.php2
-rw-r--r--lib/private/Files/FilenameValidator.php2
-rw-r--r--lib/private/Files/ObjectStore/ObjectStoreStorage.php10
-rw-r--r--lib/private/Files/ObjectStore/S3ConfigTrait.php4
-rw-r--r--lib/private/Files/ObjectStore/S3ConnectionTrait.php4
-rw-r--r--lib/private/Files/ObjectStore/S3ObjectTrait.php60
-rw-r--r--lib/private/Server.php3
-rw-r--r--lib/private/Session/CryptoWrapper.php2
-rw-r--r--lib/private/User/Session.php20
-rw-r--r--lib/public/App/IAppManager.php2
-rw-r--r--lib/public/AppFramework/App.php6
-rw-r--r--lib/public/Files/IFilenameValidator.php2
25 files changed, 211 insertions, 50 deletions
diff --git a/lib/base.php b/lib/base.php
index 55856889489..876d62c3596 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -393,6 +393,12 @@ class OC {
$cookie_path = OC::$WEBROOT ? : '/';
ini_set('session.cookie_path', $cookie_path);
+ // set the cookie domain to the Nextcloud domain
+ $cookie_domain = self::$config->getValue('cookie_domain', '');
+ if ($cookie_domain) {
+ ini_set('session.cookie_domain', $cookie_domain);
+ }
+
// Let the session name be changed in the initSession Hook
$sessionName = OC_Util::getInstanceId();
diff --git a/lib/composer/composer/autoload_classmap.php b/lib/composer/composer/autoload_classmap.php
index e0d86d084dd..3bf63efce0f 100644
--- a/lib/composer/composer/autoload_classmap.php
+++ b/lib/composer/composer/autoload_classmap.php
@@ -1331,6 +1331,7 @@ return array(
'OC\\Core\\Command\\User\\Keys\\Verify' => $baseDir . '/core/Command/User/Keys/Verify.php',
'OC\\Core\\Command\\User\\LastSeen' => $baseDir . '/core/Command/User/LastSeen.php',
'OC\\Core\\Command\\User\\ListCommand' => $baseDir . '/core/Command/User/ListCommand.php',
+ 'OC\\Core\\Command\\User\\Profile' => $baseDir . '/core/Command/User/Profile.php',
'OC\\Core\\Command\\User\\Report' => $baseDir . '/core/Command/User/Report.php',
'OC\\Core\\Command\\User\\ResetPassword' => $baseDir . '/core/Command/User/ResetPassword.php',
'OC\\Core\\Command\\User\\Setting' => $baseDir . '/core/Command/User/Setting.php',
diff --git a/lib/composer/composer/autoload_static.php b/lib/composer/composer/autoload_static.php
index 0bf675a77be..f076aaca783 100644
--- a/lib/composer/composer/autoload_static.php
+++ b/lib/composer/composer/autoload_static.php
@@ -1372,6 +1372,7 @@ class ComposerStaticInit749170dad3f5e7f9ca158f5a9f04f6a2
'OC\\Core\\Command\\User\\Keys\\Verify' => __DIR__ . '/../../..' . '/core/Command/User/Keys/Verify.php',
'OC\\Core\\Command\\User\\LastSeen' => __DIR__ . '/../../..' . '/core/Command/User/LastSeen.php',
'OC\\Core\\Command\\User\\ListCommand' => __DIR__ . '/../../..' . '/core/Command/User/ListCommand.php',
+ 'OC\\Core\\Command\\User\\Profile' => __DIR__ . '/../../..' . '/core/Command/User/Profile.php',
'OC\\Core\\Command\\User\\Report' => __DIR__ . '/../../..' . '/core/Command/User/Report.php',
'OC\\Core\\Command\\User\\ResetPassword' => __DIR__ . '/../../..' . '/core/Command/User/ResetPassword.php',
'OC\\Core\\Command\\User\\Setting' => __DIR__ . '/../../..' . '/core/Command/User/Setting.php',
diff --git a/lib/l10n/bg.js b/lib/l10n/bg.js
index 09a844026a4..445da4c9626 100644
--- a/lib/l10n/bg.js
+++ b/lib/l10n/bg.js
@@ -92,6 +92,7 @@ OC.L10N.register(
"Administration settings" : "Административни настройки",
"Settings" : "Настройки",
"Log out" : "Отписване",
+ "Accounts" : "Профили",
"Email" : "Имейл",
"Mail %s" : "Поща %s",
"Fediverse" : "Fediverse /съвкупност от обединени сървъри/",
diff --git a/lib/l10n/bg.json b/lib/l10n/bg.json
index 18407fe8356..a4bc3162762 100644
--- a/lib/l10n/bg.json
+++ b/lib/l10n/bg.json
@@ -90,6 +90,7 @@
"Administration settings" : "Административни настройки",
"Settings" : "Настройки",
"Log out" : "Отписване",
+ "Accounts" : "Профили",
"Email" : "Имейл",
"Mail %s" : "Поща %s",
"Fediverse" : "Fediverse /съвкупност от обединени сървъри/",
diff --git a/lib/l10n/gl.js b/lib/l10n/gl.js
index b38c1963b4e..adcd145ae66 100644
--- a/lib/l10n/gl.js
+++ b/lib/l10n/gl.js
@@ -112,7 +112,7 @@ OC.L10N.register(
"Moving a storage (%s) into another storage (%s) is not allowed" : "Non está permitido mover un almacenamento (%s) cara a outro almacenamento (%s)",
"Path contains invalid segments" : "A ruta contén segmentos non válidos",
"Filename is a reserved word" : "O nome de ficheiro é unha palabra reservada",
- "Filename contains at least one invalid character" : "O nome de ficheiro contén algún carácter incorrecto",
+ "Filename contains at least one invalid character" : "O nome de ficheiro contén algún carácter non aceptado",
"Filename is too long" : "O nome de ficheiro é longo de máis",
"Empty filename is not allowed" : "Non está permitido deixar baleiro o nome de ficheiro",
"App \"%s\" cannot be installed because appinfo file cannot be read." : "Non é posíbel instalar a aplicación «%s» por mor de non poder ler o ficheiro appinfo.",
diff --git a/lib/l10n/gl.json b/lib/l10n/gl.json
index 9c8d0e65999..ea8fc00b36c 100644
--- a/lib/l10n/gl.json
+++ b/lib/l10n/gl.json
@@ -110,7 +110,7 @@
"Moving a storage (%s) into another storage (%s) is not allowed" : "Non está permitido mover un almacenamento (%s) cara a outro almacenamento (%s)",
"Path contains invalid segments" : "A ruta contén segmentos non válidos",
"Filename is a reserved word" : "O nome de ficheiro é unha palabra reservada",
- "Filename contains at least one invalid character" : "O nome de ficheiro contén algún carácter incorrecto",
+ "Filename contains at least one invalid character" : "O nome de ficheiro contén algún carácter non aceptado",
"Filename is too long" : "O nome de ficheiro é longo de máis",
"Empty filename is not allowed" : "Non está permitido deixar baleiro o nome de ficheiro",
"App \"%s\" cannot be installed because appinfo file cannot be read." : "Non é posíbel instalar a aplicación «%s» por mor de non poder ler o ficheiro appinfo.",
diff --git a/lib/l10n/nl.js b/lib/l10n/nl.js
index 7d9c078ad71..fec337c601d 100644
--- a/lib/l10n/nl.js
+++ b/lib/l10n/nl.js
@@ -75,6 +75,7 @@ OC.L10N.register(
"Empty file" : "Leeg bestand",
"Module with ID: %s does not exist. Please enable it in your apps settings or contact your administrator." : "Module met ID: %s bestaat niet. Schakel die in binnen de app-instellingen of neem contact op met je beheerder.",
"Dot files are not allowed" : "Punt-bestanden zijn niet toegestaan",
+ "renamed file" : "bestand hernoemd",
"File already exists" : "Bestand bestaat al",
"Invalid path" : "Ongeldig pad",
"Failed to create file from template" : "Kon geen bestand van het sjabloon maken",
diff --git a/lib/l10n/nl.json b/lib/l10n/nl.json
index 0d11433dc52..75f2c23423e 100644
--- a/lib/l10n/nl.json
+++ b/lib/l10n/nl.json
@@ -73,6 +73,7 @@
"Empty file" : "Leeg bestand",
"Module with ID: %s does not exist. Please enable it in your apps settings or contact your administrator." : "Module met ID: %s bestaat niet. Schakel die in binnen de app-instellingen of neem contact op met je beheerder.",
"Dot files are not allowed" : "Punt-bestanden zijn niet toegestaan",
+ "renamed file" : "bestand hernoemd",
"File already exists" : "Bestand bestaat al",
"Invalid path" : "Ongeldig pad",
"Failed to create file from template" : "Kon geen bestand van het sjabloon maken",
diff --git a/lib/l10n/ru.js b/lib/l10n/ru.js
index abf9785da23..92337e27833 100644
--- a/lib/l10n/ru.js
+++ b/lib/l10n/ru.js
@@ -61,6 +61,9 @@ OC.L10N.register(
"View profile" : "Открыть профиль",
"same time" : "в то же время",
"_%nh_::_%nh_" : ["%nч","%nч","%nч","%nч"],
+ "_%nm_::_%nm_" : ["%nм","%nм","%n м","%n м"],
+ "%s ahead" : "%s вперёд",
+ "%s behind" : "%s позади",
"Local time: %s" : "Местное время: %s",
"today" : "сегодня",
"tomorrow" : "завтра",
@@ -102,6 +105,13 @@ OC.L10N.register(
"Invalid path" : "Некорректный путь",
"Failed to create file from template" : "Не удалось создать файл на основе шаблона",
"Templates" : "Шаблоны",
+ "Storage %s cannot be moved" : "Хранилище %s не может быть перемещено",
+ "Moving a share (%s) into a shared folder is not allowed" : "Перемещение общего ресурса (%s) в общую папку запрещено",
+ "Moving a storage (%s) into a shared folder is not allowed" : "Перемещение хранилища (%s) в общую папку запрещено",
+ "Moving a share (%s) into another share (%s) is not allowed" : "Перемещение общего ресурса (%s) в другой общий ресурс (%s) запрещено",
+ "Moving a share (%s) into another storage (%s) is not allowed" : "Перемещение общего ресурса (%s) в другое хранилище (%s) запрещено",
+ "Moving a storage (%s) into a share (%s) is not allowed" : "Перемещение хранилища (%s) в общий ресурс (%s) запрещено",
+ "Moving a storage (%s) into another storage (%s) is not allowed" : "Перемещение хранилища (%s) в другое хранилище (%s) запрещено",
"Path contains invalid segments" : "Путь содержит недопустимые сегменты",
"Filename is a reserved word" : "Имя файла - это зарезервированное слово",
"Filename contains at least one invalid character" : "Имя файла содержит как минимум один недопустимый символ",
@@ -148,6 +158,7 @@ OC.L10N.register(
"Oracle connection could not be established" : "Соединение с Oracle не может быть установлено",
"Oracle Login and/or password not valid" : "Неверный логин и/или пароль Oracle",
"PostgreSQL Login and/or password not valid" : "Неверный логин и/или пароль для PostgreSQL",
+ "Mac OS X is not supported and %s will not work properly on this platform. Use it at your own risk!" : "Mac OS X не поддерживается, и %s может работать некорректно на этой платформе. Используйте на свой страх и риск!",
"For the best results, please consider using a GNU/Linux server instead." : "Для достижения наилучших результатов, рассмотрите вариант использования сервера на GNU/Linux.",
"It seems that this %s instance is running on a 32-bit PHP environment and the open_basedir has been configured in php.ini. This will lead to problems with files over 4 GB and is highly discouraged." : "Кажется что экземпляр этого %s работает в 32-битной среде PHP и в php.ini был настроен open_basedir. Это приведёт к проблемам с файлами более 4 ГБ и настоятельно не рекомендуется.",
"Please remove the open_basedir setting within your php.ini or switch to 64-bit PHP." : "Удалите директиву open_basedir из файла php.ini или смените PHP на 64-разрядную сборку.",
@@ -157,13 +168,27 @@ OC.L10N.register(
"Sharing backend %s must implement the interface OCP\\Share_Backend" : "Бэкенд общего доступа %s должен реализовывать интерфейс OCP\\Share_Backend",
"Sharing backend %s not found" : "Механизм предоставления общего доступа %s не найден",
"Sharing backend for %s not found" : "Не найден механизм предоставления общего доступа для %s ",
+ "%1$s shared %2$s with you" : "%1$s поделился(ась) %2$s с вами",
"Open %s" : "Открыть %s",
"%1$s via %2$s" : "%1$s через %2$s",
+ "%1$s shared %2$s with you and wants to add:" : "%1$s поделился(ась) %2$s с вами и хочет добавить:",
+ "%1$s shared %2$s with you and wants to add" : "%1$s поделился(ась) %2$s с вами и хочет добавить",
+ "%s added a note to a file shared with you" : "%s добавил(а) заметку к файлу, которым поделился(ась) с вами",
"Passwords are enforced for link and mail shares" : "Для общих ссылок и почтовых рассылок применяются пароли",
+ "Share recipient is not a valid user" : "Получатель общего ресурса — некорректный пользователь",
+ "Share recipient is not a valid group" : "Получатель общего ресурса — некорректная группа",
+ "Share recipient should be empty" : "Получатель общего ресурса должен быть пустым",
+ "Share recipient should not be empty" : "Получатель общего ресурса не должен быть пустым",
+ "Share recipient is not a valid circle" : "Получатель общего ресурса — некорректный круг",
"Unknown share type" : "Общий доступ неизвестного типа",
+ "Share initiator must be set" : "Должен быть задан инициатор общего ресурса",
"Cannot share with yourself" : "Не могу поделиться с самим собой",
+ "Shared path must be set" : "Должен быть указан путь к общему ресурсу",
+ "Shared path must be either a file or a folder" : "Путь должен указывать на файл или папку",
"You cannot share your root folder" : "Вы не можете предоставить общий доступ к своей корневой папке",
"You are not allowed to share %s" : "Вам не разрешено делиться %s",
+ "Valid permissions are required for sharing" : "Для общего ресурса необходимы корректные права",
+ "File shares cannot have create or delete permissions" : "Для файловых общих ресурсов нельзя задавать права доступа на создание или удаление",
"Cannot increase permissions of %s" : "Не удалось повысить права доступа %s",
"Shares need at least read permissions" : "Общим ресурсам требуются как минимум разрешения на чтение",
"Files cannot be shared with delete permissions" : "Права на удаление файлов не позволяют открывать общий доступ к ним",
@@ -178,6 +203,7 @@ OC.L10N.register(
"Path is already shared with this group" : "Путь уже является общим для этой группы",
"Link sharing is not allowed" : "Обмен ссылками запрещен",
"Public upload is not allowed" : "Публичная загрузка данных запрещена",
+ "You cannot share a folder that contains other shares" : "Нельзя делиться папкой, содержащей другие общие ресурсы",
"Sharing is disabled" : "Общий доступ отключен",
"Sharing is disabled for you" : "Общий доступ для вас отключен",
"Cannot share with the share owner" : "Невозможно поделиться с владельцем общего доступа",
@@ -189,6 +215,7 @@ OC.L10N.register(
"Cannot disable sending the password by Talk without setting a new password" : "Невозможно отключить отправку пароля по телефону без установки нового пароля",
"Share provider does not support accepting" : "Поставщик общего доступа не поддерживает прием",
"Cannot change target of link share" : "Невозможно изменить цель публикации ссылки",
+ "Invalid share recipient" : "Некорректный получатель общего ресурса",
"Group \"%s\" does not exist" : "Группа \"%s\" не существует",
"The requested share does not exist anymore" : "Запрошенный общий ресурс более не существует.",
"The requested share comes from a disabled user" : "Запрос на общий доступ поступает от отключенного пользователя",
@@ -248,6 +275,7 @@ OC.L10N.register(
"A valid Login must be provided" : "Необходимо указать действительный логин для входа в систему",
"Login contains whitespace at the beginning or at the end" : "Имя пользователя содержит пробелы в начале или в конце",
"Login must not consist of dots only" : "Логин не должен состоять только из точек",
+ "Username is too long" : "Имя пользователя слишком длинное",
"Login is invalid because files already exist for this user" : "Логин недействителен, поскольку файлы для этого пользователя уже существуют",
"Account disabled" : "Учетная запись отключена",
"Login canceled by app" : "Вход отменен приложением",
@@ -304,10 +332,19 @@ OC.L10N.register(
"The audio to transcribe" : "Аудио для расшифровки",
"Transcription" : "Транскрипция",
"The transcribed text" : "Расшифрованный текст",
+ "Chat with an agent" : "Чат с агентом",
"Chat message" : "Сообщение в чате",
+ "A chat message to send to the agent." : "Сообщение для отправки агенту",
"Confirmation" : "Подтверждение",
+ "Whether to confirm previously requested actions: 0 for denial and 1 for confirmation." : "Подтвердить ранее запрошенные действия: 0 — отказ, 1 — подтверждение.",
+ "Conversation token" : "Токен беседы",
+ "A token representing the conversation." : "Токен, представляющий беседу.",
"Generated response" : "Сгенерированный ответ",
"The response from the chat model." : "Ответ от модели чата.",
+ "The new conversation token" : "Новый токен беседы",
+ "Send this along with the next interaction." : "Отправьте его при следующем взаимодействии.",
+ "Requested actions by the agent" : "Запрошенные действия от агента",
+ "Actions that the agent would like to carry out in JSON format." : "Действия, которые агент хотел бы выполнить в формате JSON.",
"Context write" : "Контекстная запись",
"Writes text in a given style based on the provided source material." : "Пишет текст в заданном стиле на основе предоставленного исходного материала.",
"Writing style" : "Стиль письма",
@@ -318,19 +355,29 @@ OC.L10N.register(
"The generated text with content from the source material in the given style" : "Сгенерированный текст с содержимым из исходного материала в заданном стиле",
"Emoji generator" : "Генератор Emoji",
"Takes text and generates a representative emoji for it." : "Берет текст и генерирует для него репрезентативный смайлик.",
+ "The text to generate an emoji for" : "Текст для создания эмодзи",
+ "Generated emoji" : "Созданный эмодзи",
+ "The generated emoji based on the input text" : "Эмодзи, созданный на основе введённого текста",
"Generate image" : "Генерировать изображение",
"Generate an image from a text prompt" : "Создайте изображение из текстовой подсказки",
+ "Prompt" : "Подсказка",
"Describe the image you want to generate" : "Опишите изображение, которое вы хотите создать",
"Number of images" : "Количество изображений",
"How many images to generate" : "Сколько изображений генерировать",
"Output images" : "Выходные изображения",
"The generated images" : "Сгенерированные изображения",
+ "Generate speech" : "Сгенерировать речь",
+ "Generate speech from a transcript" : "Сгенерировать речь из транскрипта",
+ "Write transcript that you want the assistant to generate speech from" : "Введите транскрипт, по которому ассистент должен сгенерировать речь",
+ "Output speech" : "Выходное аудио",
+ "The generated speech" : "Сгенерированная речь",
"Free text to text prompt" : "Произвольное преобразование текста в текстовую подсказку",
"Runs an arbitrary prompt through a language model that returns a reply" : "Запускает произвольный запрос с помощью языковой модели, которая возвращает ответ",
"Describe a task that you want the assistant to do or ask a question" : "Опишите задачу, которую вы хотите поручить ассистенту, или задайте вопрос",
"Generated reply" : "Сгенерированный ответ",
"The generated text from the assistant" : "Сгенерированный текст от помощника",
"Change Tone" : "Сменить тон",
+ "Change the tone of a piece of text." : "Изменить тон текста",
"Write a text that you want the assistant to rewrite in another tone." : "Напишите текст, чтобы ассистент переписал его в другом тоне.",
"Desired tone" : "Желаемый тон",
"In which tone should your text be rewritten?" : "В каком тоне следует переписать ваш текст?",
@@ -343,7 +390,15 @@ OC.L10N.register(
"The history of chat messages before the current message, starting with a message by the user" : "История сообщений в чате до текущего сообщения, начиная с сообщения пользователя",
"Response message" : "Ответное сообщение",
"The generated response as part of the conversation" : "Сгенерированный ответ в ходе беседы",
+ "Chat with tools" : "Чат с инструментами",
+ "Chat with the language model with tool calling support." : "Чат с языковой моделью с поддержкой вызова инструментов.",
+ "Tool message" : "Сообщение инструмента",
+ "The result of tool calls in the last interaction" : "Результат вызова инструментов в последнем взаимодействии",
+ "Available tools" : "Доступные инструменты",
+ "The available tools in JSON format" : "Доступные инструменты в формате JSON",
"The response from the chat model" : "Ответ от чат-модели",
+ "Tool calls" : "Вызовы инструментов",
+ "Tools call instructions from the model in JSON format" : "Инструкции по вызову инструментов от модели в формате JSON",
"Formalize text" : "Формализовать текст",
"Takes a text and makes it sound more formal" : "Берется текст и делает его звучание более формальным",
"Write a text that you want the assistant to formalize" : "Напишите текст, который вы хотите, чтобы ассистент оформил официально",
@@ -354,7 +409,12 @@ OC.L10N.register(
"Original text" : "Оригинальный текст",
"The original text to generate a headline for" : "Исходный текст для создания заголовка для",
"The generated headline" : "Сгенерированный заголовок",
+ "Proofread" : "Проверка правописания",
+ "Proofreads a text and lists corrections" : "Проверяет текст и показывает исправления",
"Text" : "Текст",
+ "The text to proofread" : "Текст для проверки",
+ "Corrections" : "Исправления",
+ "The corrections that should be made in your text" : "Исправления, которые следует внести в ваш текст",
"Reformulate text" : "Переформулировать текст",
"Takes a text and reformulates it" : "Берет текст и переформулирует его",
"Write a text that you want the assistant to reformulate" : "Напишите текст, который вы хотите, чтобы ассистент переформулировал",
@@ -391,6 +451,7 @@ OC.L10N.register(
"Summarizes text by reducing its length without losing key information." : "Обобщает текст, сокращая его длину без потери ключевой информации.",
"Extracts topics from a text and outputs them separated by commas." : "Извлекает темы из текста и выводит их через запятую.",
"File is currently busy, please try again later" : "Файл в данный момент используется, повторите попытку позже.",
- "Cannot download file" : "Не удалось скачать файл"
+ "Cannot download file" : "Не удалось скачать файл",
+ "Login is too long" : "Имя пользователя слишком длинное"
},
"nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);");
diff --git a/lib/l10n/ru.json b/lib/l10n/ru.json
index e34ba41d3b3..590ad80b5b7 100644
--- a/lib/l10n/ru.json
+++ b/lib/l10n/ru.json
@@ -59,6 +59,9 @@
"View profile" : "Открыть профиль",
"same time" : "в то же время",
"_%nh_::_%nh_" : ["%nч","%nч","%nч","%nч"],
+ "_%nm_::_%nm_" : ["%nм","%nм","%n м","%n м"],
+ "%s ahead" : "%s вперёд",
+ "%s behind" : "%s позади",
"Local time: %s" : "Местное время: %s",
"today" : "сегодня",
"tomorrow" : "завтра",
@@ -100,6 +103,13 @@
"Invalid path" : "Некорректный путь",
"Failed to create file from template" : "Не удалось создать файл на основе шаблона",
"Templates" : "Шаблоны",
+ "Storage %s cannot be moved" : "Хранилище %s не может быть перемещено",
+ "Moving a share (%s) into a shared folder is not allowed" : "Перемещение общего ресурса (%s) в общую папку запрещено",
+ "Moving a storage (%s) into a shared folder is not allowed" : "Перемещение хранилища (%s) в общую папку запрещено",
+ "Moving a share (%s) into another share (%s) is not allowed" : "Перемещение общего ресурса (%s) в другой общий ресурс (%s) запрещено",
+ "Moving a share (%s) into another storage (%s) is not allowed" : "Перемещение общего ресурса (%s) в другое хранилище (%s) запрещено",
+ "Moving a storage (%s) into a share (%s) is not allowed" : "Перемещение хранилища (%s) в общий ресурс (%s) запрещено",
+ "Moving a storage (%s) into another storage (%s) is not allowed" : "Перемещение хранилища (%s) в другое хранилище (%s) запрещено",
"Path contains invalid segments" : "Путь содержит недопустимые сегменты",
"Filename is a reserved word" : "Имя файла - это зарезервированное слово",
"Filename contains at least one invalid character" : "Имя файла содержит как минимум один недопустимый символ",
@@ -146,6 +156,7 @@
"Oracle connection could not be established" : "Соединение с Oracle не может быть установлено",
"Oracle Login and/or password not valid" : "Неверный логин и/или пароль Oracle",
"PostgreSQL Login and/or password not valid" : "Неверный логин и/или пароль для PostgreSQL",
+ "Mac OS X is not supported and %s will not work properly on this platform. Use it at your own risk!" : "Mac OS X не поддерживается, и %s может работать некорректно на этой платформе. Используйте на свой страх и риск!",
"For the best results, please consider using a GNU/Linux server instead." : "Для достижения наилучших результатов, рассмотрите вариант использования сервера на GNU/Linux.",
"It seems that this %s instance is running on a 32-bit PHP environment and the open_basedir has been configured in php.ini. This will lead to problems with files over 4 GB and is highly discouraged." : "Кажется что экземпляр этого %s работает в 32-битной среде PHP и в php.ini был настроен open_basedir. Это приведёт к проблемам с файлами более 4 ГБ и настоятельно не рекомендуется.",
"Please remove the open_basedir setting within your php.ini or switch to 64-bit PHP." : "Удалите директиву open_basedir из файла php.ini или смените PHP на 64-разрядную сборку.",
@@ -155,13 +166,27 @@
"Sharing backend %s must implement the interface OCP\\Share_Backend" : "Бэкенд общего доступа %s должен реализовывать интерфейс OCP\\Share_Backend",
"Sharing backend %s not found" : "Механизм предоставления общего доступа %s не найден",
"Sharing backend for %s not found" : "Не найден механизм предоставления общего доступа для %s ",
+ "%1$s shared %2$s with you" : "%1$s поделился(ась) %2$s с вами",
"Open %s" : "Открыть %s",
"%1$s via %2$s" : "%1$s через %2$s",
+ "%1$s shared %2$s with you and wants to add:" : "%1$s поделился(ась) %2$s с вами и хочет добавить:",
+ "%1$s shared %2$s with you and wants to add" : "%1$s поделился(ась) %2$s с вами и хочет добавить",
+ "%s added a note to a file shared with you" : "%s добавил(а) заметку к файлу, которым поделился(ась) с вами",
"Passwords are enforced for link and mail shares" : "Для общих ссылок и почтовых рассылок применяются пароли",
+ "Share recipient is not a valid user" : "Получатель общего ресурса — некорректный пользователь",
+ "Share recipient is not a valid group" : "Получатель общего ресурса — некорректная группа",
+ "Share recipient should be empty" : "Получатель общего ресурса должен быть пустым",
+ "Share recipient should not be empty" : "Получатель общего ресурса не должен быть пустым",
+ "Share recipient is not a valid circle" : "Получатель общего ресурса — некорректный круг",
"Unknown share type" : "Общий доступ неизвестного типа",
+ "Share initiator must be set" : "Должен быть задан инициатор общего ресурса",
"Cannot share with yourself" : "Не могу поделиться с самим собой",
+ "Shared path must be set" : "Должен быть указан путь к общему ресурсу",
+ "Shared path must be either a file or a folder" : "Путь должен указывать на файл или папку",
"You cannot share your root folder" : "Вы не можете предоставить общий доступ к своей корневой папке",
"You are not allowed to share %s" : "Вам не разрешено делиться %s",
+ "Valid permissions are required for sharing" : "Для общего ресурса необходимы корректные права",
+ "File shares cannot have create or delete permissions" : "Для файловых общих ресурсов нельзя задавать права доступа на создание или удаление",
"Cannot increase permissions of %s" : "Не удалось повысить права доступа %s",
"Shares need at least read permissions" : "Общим ресурсам требуются как минимум разрешения на чтение",
"Files cannot be shared with delete permissions" : "Права на удаление файлов не позволяют открывать общий доступ к ним",
@@ -176,6 +201,7 @@
"Path is already shared with this group" : "Путь уже является общим для этой группы",
"Link sharing is not allowed" : "Обмен ссылками запрещен",
"Public upload is not allowed" : "Публичная загрузка данных запрещена",
+ "You cannot share a folder that contains other shares" : "Нельзя делиться папкой, содержащей другие общие ресурсы",
"Sharing is disabled" : "Общий доступ отключен",
"Sharing is disabled for you" : "Общий доступ для вас отключен",
"Cannot share with the share owner" : "Невозможно поделиться с владельцем общего доступа",
@@ -187,6 +213,7 @@
"Cannot disable sending the password by Talk without setting a new password" : "Невозможно отключить отправку пароля по телефону без установки нового пароля",
"Share provider does not support accepting" : "Поставщик общего доступа не поддерживает прием",
"Cannot change target of link share" : "Невозможно изменить цель публикации ссылки",
+ "Invalid share recipient" : "Некорректный получатель общего ресурса",
"Group \"%s\" does not exist" : "Группа \"%s\" не существует",
"The requested share does not exist anymore" : "Запрошенный общий ресурс более не существует.",
"The requested share comes from a disabled user" : "Запрос на общий доступ поступает от отключенного пользователя",
@@ -246,6 +273,7 @@
"A valid Login must be provided" : "Необходимо указать действительный логин для входа в систему",
"Login contains whitespace at the beginning or at the end" : "Имя пользователя содержит пробелы в начале или в конце",
"Login must not consist of dots only" : "Логин не должен состоять только из точек",
+ "Username is too long" : "Имя пользователя слишком длинное",
"Login is invalid because files already exist for this user" : "Логин недействителен, поскольку файлы для этого пользователя уже существуют",
"Account disabled" : "Учетная запись отключена",
"Login canceled by app" : "Вход отменен приложением",
@@ -302,10 +330,19 @@
"The audio to transcribe" : "Аудио для расшифровки",
"Transcription" : "Транскрипция",
"The transcribed text" : "Расшифрованный текст",
+ "Chat with an agent" : "Чат с агентом",
"Chat message" : "Сообщение в чате",
+ "A chat message to send to the agent." : "Сообщение для отправки агенту",
"Confirmation" : "Подтверждение",
+ "Whether to confirm previously requested actions: 0 for denial and 1 for confirmation." : "Подтвердить ранее запрошенные действия: 0 — отказ, 1 — подтверждение.",
+ "Conversation token" : "Токен беседы",
+ "A token representing the conversation." : "Токен, представляющий беседу.",
"Generated response" : "Сгенерированный ответ",
"The response from the chat model." : "Ответ от модели чата.",
+ "The new conversation token" : "Новый токен беседы",
+ "Send this along with the next interaction." : "Отправьте его при следующем взаимодействии.",
+ "Requested actions by the agent" : "Запрошенные действия от агента",
+ "Actions that the agent would like to carry out in JSON format." : "Действия, которые агент хотел бы выполнить в формате JSON.",
"Context write" : "Контекстная запись",
"Writes text in a given style based on the provided source material." : "Пишет текст в заданном стиле на основе предоставленного исходного материала.",
"Writing style" : "Стиль письма",
@@ -316,19 +353,29 @@
"The generated text with content from the source material in the given style" : "Сгенерированный текст с содержимым из исходного материала в заданном стиле",
"Emoji generator" : "Генератор Emoji",
"Takes text and generates a representative emoji for it." : "Берет текст и генерирует для него репрезентативный смайлик.",
+ "The text to generate an emoji for" : "Текст для создания эмодзи",
+ "Generated emoji" : "Созданный эмодзи",
+ "The generated emoji based on the input text" : "Эмодзи, созданный на основе введённого текста",
"Generate image" : "Генерировать изображение",
"Generate an image from a text prompt" : "Создайте изображение из текстовой подсказки",
+ "Prompt" : "Подсказка",
"Describe the image you want to generate" : "Опишите изображение, которое вы хотите создать",
"Number of images" : "Количество изображений",
"How many images to generate" : "Сколько изображений генерировать",
"Output images" : "Выходные изображения",
"The generated images" : "Сгенерированные изображения",
+ "Generate speech" : "Сгенерировать речь",
+ "Generate speech from a transcript" : "Сгенерировать речь из транскрипта",
+ "Write transcript that you want the assistant to generate speech from" : "Введите транскрипт, по которому ассистент должен сгенерировать речь",
+ "Output speech" : "Выходное аудио",
+ "The generated speech" : "Сгенерированная речь",
"Free text to text prompt" : "Произвольное преобразование текста в текстовую подсказку",
"Runs an arbitrary prompt through a language model that returns a reply" : "Запускает произвольный запрос с помощью языковой модели, которая возвращает ответ",
"Describe a task that you want the assistant to do or ask a question" : "Опишите задачу, которую вы хотите поручить ассистенту, или задайте вопрос",
"Generated reply" : "Сгенерированный ответ",
"The generated text from the assistant" : "Сгенерированный текст от помощника",
"Change Tone" : "Сменить тон",
+ "Change the tone of a piece of text." : "Изменить тон текста",
"Write a text that you want the assistant to rewrite in another tone." : "Напишите текст, чтобы ассистент переписал его в другом тоне.",
"Desired tone" : "Желаемый тон",
"In which tone should your text be rewritten?" : "В каком тоне следует переписать ваш текст?",
@@ -341,7 +388,15 @@
"The history of chat messages before the current message, starting with a message by the user" : "История сообщений в чате до текущего сообщения, начиная с сообщения пользователя",
"Response message" : "Ответное сообщение",
"The generated response as part of the conversation" : "Сгенерированный ответ в ходе беседы",
+ "Chat with tools" : "Чат с инструментами",
+ "Chat with the language model with tool calling support." : "Чат с языковой моделью с поддержкой вызова инструментов.",
+ "Tool message" : "Сообщение инструмента",
+ "The result of tool calls in the last interaction" : "Результат вызова инструментов в последнем взаимодействии",
+ "Available tools" : "Доступные инструменты",
+ "The available tools in JSON format" : "Доступные инструменты в формате JSON",
"The response from the chat model" : "Ответ от чат-модели",
+ "Tool calls" : "Вызовы инструментов",
+ "Tools call instructions from the model in JSON format" : "Инструкции по вызову инструментов от модели в формате JSON",
"Formalize text" : "Формализовать текст",
"Takes a text and makes it sound more formal" : "Берется текст и делает его звучание более формальным",
"Write a text that you want the assistant to formalize" : "Напишите текст, который вы хотите, чтобы ассистент оформил официально",
@@ -352,7 +407,12 @@
"Original text" : "Оригинальный текст",
"The original text to generate a headline for" : "Исходный текст для создания заголовка для",
"The generated headline" : "Сгенерированный заголовок",
+ "Proofread" : "Проверка правописания",
+ "Proofreads a text and lists corrections" : "Проверяет текст и показывает исправления",
"Text" : "Текст",
+ "The text to proofread" : "Текст для проверки",
+ "Corrections" : "Исправления",
+ "The corrections that should be made in your text" : "Исправления, которые следует внести в ваш текст",
"Reformulate text" : "Переформулировать текст",
"Takes a text and reformulates it" : "Берет текст и переформулирует его",
"Write a text that you want the assistant to reformulate" : "Напишите текст, который вы хотите, чтобы ассистент переформулировал",
@@ -389,6 +449,7 @@
"Summarizes text by reducing its length without losing key information." : "Обобщает текст, сокращая его длину без потери ключевой информации.",
"Extracts topics from a text and outputs them separated by commas." : "Извлекает темы из текста и выводит их через запятую.",
"File is currently busy, please try again later" : "Файл в данный момент используется, повторите попытку позже.",
- "Cannot download file" : "Не удалось скачать файл"
+ "Cannot download file" : "Не удалось скачать файл",
+ "Login is too long" : "Имя пользователя слишком длинное"
},"pluralForm" :"nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);"
} \ No newline at end of file
diff --git a/lib/l10n/sw.js b/lib/l10n/sw.js
index ddcc74ef517..baef028baf7 100644
--- a/lib/l10n/sw.js
+++ b/lib/l10n/sw.js
@@ -6,6 +6,7 @@ OC.L10N.register(
"File already exists" : "Faili lipo tayari",
"Settings" : "Mipangilio",
"Email" : "Barua pepe",
+ "Additional settings" : "Mipangilio ya nyongeza",
"Sunday" : "Jumapili",
"Monday" : "Jumatatu",
"Tuesday" : "Jumanne",
diff --git a/lib/l10n/sw.json b/lib/l10n/sw.json
index 3f81b601398..bc299dcef06 100644
--- a/lib/l10n/sw.json
+++ b/lib/l10n/sw.json
@@ -4,6 +4,7 @@
"File already exists" : "Faili lipo tayari",
"Settings" : "Mipangilio",
"Email" : "Barua pepe",
+ "Additional settings" : "Mipangilio ya nyongeza",
"Sunday" : "Jumapili",
"Monday" : "Jumatatu",
"Tuesday" : "Jumanne",
diff --git a/lib/private/App/AppManager.php b/lib/private/App/AppManager.php
index 4223d09e3dc..303a88e9ceb 100644
--- a/lib/private/App/AppManager.php
+++ b/lib/private/App/AppManager.php
@@ -204,7 +204,7 @@ class AppManager implements IAppManager {
* List all apps enabled for a user
*
* @param \OCP\IUser $user
- * @return string[]
+ * @return list<string>
*/
public function getEnabledAppsForUser(IUser $user) {
$apps = $this->getEnabledAppsValues();
diff --git a/lib/private/Files/FilenameValidator.php b/lib/private/Files/FilenameValidator.php
index 57a62b0b219..a78c6d3cc3c 100644
--- a/lib/private/Files/FilenameValidator.php
+++ b/lib/private/Files/FilenameValidator.php
@@ -232,7 +232,7 @@ class FilenameValidator implements IFilenameValidator {
$forbiddenCharacters = $this->getForbiddenCharacters();
if ($charReplacement === null) {
- $charReplacement = array_diff([' ', '_', '-'], $forbiddenCharacters);
+ $charReplacement = array_diff(['_', '-', ' '], $forbiddenCharacters);
$charReplacement = reset($charReplacement) ?: '';
}
if (mb_strlen($charReplacement) !== 1) {
diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php
index 36b1a7a1c95..752c3cf4fb7 100644
--- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php
+++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php
@@ -413,16 +413,6 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common implements IChunkedFil
//create a empty file, need to have at least on char to make it
// work with all object storage implementations
$this->file_put_contents($path, ' ');
- $mimeType = \OC::$server->getMimeTypeDetector()->detectPath($path);
- $stat = [
- 'etag' => $this->getETag($path),
- 'mimetype' => $mimeType,
- 'size' => 0,
- 'mtime' => $mtime,
- 'storage_mtime' => $mtime,
- 'permissions' => \OCP\Constants::PERMISSION_ALL - \OCP\Constants::PERMISSION_CREATE,
- ];
- $this->getCache()->put($path, $stat);
} catch (\Exception $ex) {
$this->logger->error(
'Could not create object for ' . $path,
diff --git a/lib/private/Files/ObjectStore/S3ConfigTrait.php b/lib/private/Files/ObjectStore/S3ConfigTrait.php
index 63f14ac2d00..5b086db8f77 100644
--- a/lib/private/Files/ObjectStore/S3ConfigTrait.php
+++ b/lib/private/Files/ObjectStore/S3ConfigTrait.php
@@ -18,6 +18,10 @@ trait S3ConfigTrait {
/** Maximum number of concurrent multipart uploads */
protected int $concurrency;
+ /** Timeout, in seconds, for the connection to S3 server, not for the
+ * request. */
+ protected float $connectTimeout;
+
protected int $timeout;
protected string|false $proxy;
diff --git a/lib/private/Files/ObjectStore/S3ConnectionTrait.php b/lib/private/Files/ObjectStore/S3ConnectionTrait.php
index b7017583dc2..062d2e4bde4 100644
--- a/lib/private/Files/ObjectStore/S3ConnectionTrait.php
+++ b/lib/private/Files/ObjectStore/S3ConnectionTrait.php
@@ -39,6 +39,7 @@ trait S3ConnectionTrait {
// Default to 5 like the S3 SDK does
$this->concurrency = $params['concurrency'] ?? 5;
$this->proxy = $params['proxy'] ?? false;
+ $this->connectTimeout = $params['connect_timeout'] ?? 5;
$this->timeout = $params['timeout'] ?? 15;
$this->storageClass = !empty($params['storageClass']) ? $params['storageClass'] : 'STANDARD';
$this->uploadPartSize = $params['uploadPartSize'] ?? 524288000;
@@ -102,8 +103,7 @@ trait S3ConnectionTrait {
'use_arn_region' => false,
'http' => [
'verify' => $this->getCertificateBundlePath(),
- // Timeout for the connection to S3 server, not for the request.
- 'connect_timeout' => 5
+ 'connect_timeout' => $this->connectTimeout,
],
'use_aws_shared_config_files' => false,
'retries' => [
diff --git a/lib/private/Files/ObjectStore/S3ObjectTrait.php b/lib/private/Files/ObjectStore/S3ObjectTrait.php
index 61e8158b863..5e6dcf88a42 100644
--- a/lib/private/Files/ObjectStore/S3ObjectTrait.php
+++ b/lib/private/Files/ObjectStore/S3ObjectTrait.php
@@ -119,28 +119,54 @@ trait S3ObjectTrait {
protected function writeMultiPart(string $urn, StreamInterface $stream, array $metaData): void {
$mimetype = $metaData['mimetype'] ?? null;
unset($metaData['mimetype']);
- $uploader = new MultipartUploader($this->getConnection(), $stream, [
- 'bucket' => $this->bucket,
- 'concurrency' => $this->concurrency,
- 'key' => $urn,
- 'part_size' => $this->uploadPartSize,
- 'params' => [
- 'ContentType' => $mimetype,
- 'Metadata' => $this->buildS3Metadata($metaData),
- 'StorageClass' => $this->storageClass,
- ] + $this->getSSECParameters(),
- ]);
- try {
- $uploader->upload();
- } catch (S3MultipartUploadException $e) {
+ $attempts = 0;
+ $uploaded = false;
+ $concurrency = $this->concurrency;
+ $exception = null;
+ $state = null;
+
+ // retry multipart upload once with concurrency at half on failure
+ while (!$uploaded && $attempts <= 1) {
+ $uploader = new MultipartUploader($this->getConnection(), $stream, [
+ 'bucket' => $this->bucket,
+ 'concurrency' => $concurrency,
+ 'key' => $urn,
+ 'part_size' => $this->uploadPartSize,
+ 'state' => $state,
+ 'params' => [
+ 'ContentType' => $mimetype,
+ 'Metadata' => $this->buildS3Metadata($metaData),
+ 'StorageClass' => $this->storageClass,
+ ] + $this->getSSECParameters(),
+ ]);
+
+ try {
+ $uploader->upload();
+ $uploaded = true;
+ } catch (S3MultipartUploadException $e) {
+ $exception = $e;
+ $attempts++;
+
+ if ($concurrency > 1) {
+ $concurrency = round($concurrency / 2);
+ }
+
+ if ($stream->isSeekable()) {
+ $stream->rewind();
+ }
+ }
+ }
+
+ if (!$uploaded) {
// if anything goes wrong with multipart, make sure that you don´t poison and
// slow down s3 bucket with orphaned fragments
- $uploadInfo = $e->getState()->getId();
- if ($e->getState()->isInitiated() && (array_key_exists('UploadId', $uploadInfo))) {
+ $uploadInfo = $exception->getState()->getId();
+ if ($exception->getState()->isInitiated() && (array_key_exists('UploadId', $uploadInfo))) {
$this->getConnection()->abortMultipartUpload($uploadInfo);
}
- throw new \OCA\DAV\Connector\Sabre\Exception\BadGateway('Error while uploading to S3 bucket', 0, $e);
+
+ throw new \OCA\DAV\Connector\Sabre\Exception\BadGateway('Error while uploading to S3 bucket', 0, $exception);
}
}
diff --git a/lib/private/Server.php b/lib/private/Server.php
index b84c001a200..5964a979e21 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -322,7 +322,7 @@ class Server extends ServerContainer implements IServerContainer {
return new Profiler($c->get(SystemConfig::class));
});
- $this->registerService(\OCP\Encryption\IManager::class, function (Server $c): Encryption\Manager {
+ $this->registerService(Encryption\Manager::class, function (Server $c): Encryption\Manager {
$view = new View();
$util = new Encryption\Util(
$view,
@@ -339,6 +339,7 @@ class Server extends ServerContainer implements IServerContainer {
new ArrayCache()
);
});
+ $this->registerAlias(\OCP\Encryption\IManager::class, Encryption\Manager::class);
$this->registerService(IFile::class, function (ContainerInterface $c) {
$util = new Encryption\Util(
diff --git a/lib/private/Session/CryptoWrapper.php b/lib/private/Session/CryptoWrapper.php
index 380c699d32d..40c2ba6adf3 100644
--- a/lib/private/Session/CryptoWrapper.php
+++ b/lib/private/Session/CryptoWrapper.php
@@ -59,7 +59,7 @@ class CryptoWrapper {
[
'expires' => 0,
'path' => $webRoot,
- 'domain' => '',
+ 'domain' => \OCP\Server::get(\OCP\IConfig::class)->getSystemValueString('cookie_domain'),
'secure' => $secureCookie,
'httponly' => true,
'samesite' => 'Lax',
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php
index 27570822ef2..a638cd24557 100644
--- a/lib/private/User/Session.php
+++ b/lib/private/User/Session.php
@@ -967,6 +967,7 @@ class Session implements IUserSession, Emitter {
if ($webRoot === '') {
$webRoot = '/';
}
+ $domain = $this->config->getSystemValueString('cookie_domain');
$maxAge = $this->config->getSystemValueInt('remember_login_cookie_lifetime', 60 * 60 * 24 * 15);
\OC\Http\CookieHelper::setCookie(
@@ -974,7 +975,7 @@ class Session implements IUserSession, Emitter {
$username,
$maxAge,
$webRoot,
- '',
+ $domain,
$secureCookie,
true,
\OC\Http\CookieHelper::SAMESITE_LAX
@@ -984,7 +985,7 @@ class Session implements IUserSession, Emitter {
$token,
$maxAge,
$webRoot,
- '',
+ $domain,
$secureCookie,
true,
\OC\Http\CookieHelper::SAMESITE_LAX
@@ -995,7 +996,7 @@ class Session implements IUserSession, Emitter {
$this->session->getId(),
$maxAge,
$webRoot,
- '',
+ $domain,
$secureCookie,
true,
\OC\Http\CookieHelper::SAMESITE_LAX
@@ -1011,18 +1012,19 @@ class Session implements IUserSession, Emitter {
public function unsetMagicInCookie() {
//TODO: DI for cookies and IRequest
$secureCookie = OC::$server->getRequest()->getServerProtocol() === 'https';
+ $domain = $this->config->getSystemValueString('cookie_domain');
unset($_COOKIE['nc_username']); //TODO: DI
unset($_COOKIE['nc_token']);
unset($_COOKIE['nc_session_id']);
- setcookie('nc_username', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT, '', $secureCookie, true);
- setcookie('nc_token', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT, '', $secureCookie, true);
- setcookie('nc_session_id', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT, '', $secureCookie, true);
+ setcookie('nc_username', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT, $domain, $secureCookie, true);
+ setcookie('nc_token', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT, $domain, $secureCookie, true);
+ setcookie('nc_session_id', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT, $domain, $secureCookie, true);
// old cookies might be stored under /webroot/ instead of /webroot
// and Firefox doesn't like it!
- setcookie('nc_username', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT . '/', '', $secureCookie, true);
- setcookie('nc_token', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT . '/', '', $secureCookie, true);
- setcookie('nc_session_id', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT . '/', '', $secureCookie, true);
+ setcookie('nc_username', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT . '/', $domain, $secureCookie, true);
+ setcookie('nc_token', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT . '/', $domain, $secureCookie, true);
+ setcookie('nc_session_id', '', $this->timeFactory->getTime() - 3600, OC::$WEBROOT . '/', $domain, $secureCookie, true);
}
/**
diff --git a/lib/public/App/IAppManager.php b/lib/public/App/IAppManager.php
index 6eae870216f..20019ce1ffd 100644
--- a/lib/public/App/IAppManager.php
+++ b/lib/public/App/IAppManager.php
@@ -184,7 +184,7 @@ interface IAppManager {
* List all apps enabled for a user
*
* @param \OCP\IUser $user
- * @return string[]
+ * @return list<string>
* @since 8.1.0
*/
public function getEnabledAppsForUser(IUser $user);
diff --git a/lib/public/AppFramework/App.php b/lib/public/AppFramework/App.php
index eec5c6e83e9..2cf976ce90a 100644
--- a/lib/public/AppFramework/App.php
+++ b/lib/public/AppFramework/App.php
@@ -9,6 +9,7 @@ declare(strict_types=1);
*/
namespace OCP\AppFramework;
+use OC\AppFramework\Utility\SimpleContainer;
use OC\ServerContainer;
use OCP\IConfig;
use OCP\Server;
@@ -70,9 +71,10 @@ class App {
$setUpViaQuery = true;
break;
} elseif (isset($step['class'], $step['function'], $step['args'][0]) &&
- $step['class'] === \ReflectionClass::class &&
- $step['function'] === 'initializeLazyObject' &&
+ $step['class'] === SimpleContainer::class &&
+ preg_match('/{closure:OC\\\\AppFramework\\\\Utility\\\\SimpleContainer::buildClass\\(\\):\\d+}/', $step['function']) &&
$step['args'][0] === $this) {
+ /* We are setup through a lazy ghost, fine */
$setUpViaQuery = true;
break;
}
diff --git a/lib/public/Files/IFilenameValidator.php b/lib/public/Files/IFilenameValidator.php
index d8bd06d179d..9b7fa1e2e2e 100644
--- a/lib/public/Files/IFilenameValidator.php
+++ b/lib/public/Files/IFilenameValidator.php
@@ -43,7 +43,7 @@ interface IFilenameValidator {
* If no sanitizing is needed the same name is returned.
*
* @param string $name The filename to sanitize
- * @param null|string $charReplacement Character to use for replacing forbidden ones - by default space, dash or underscore is used if allowed.
+ * @param null|string $charReplacement Character to use for replacing forbidden ones - by default underscore, dash or space is used if allowed.
* @throws \InvalidArgumentException if no character replacement was given (and the default could not be applied) or the replacement is not valid.
* @since 32.0.0
*/