Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2026-01-22 15:25:43 +01:00
commit 28cc3dabe3
3 changed files with 4 additions and 1 deletions

View File

@ -373,6 +373,7 @@
- simple password strength algorithmn takes length of password into account,
if length is greater than 8
- parse changelog and readme of extension as markdown
- fix incorrect base path for url routing, which broke some extensions
--------------------------------------------------------------------------------
Changes in version 5.1.44

View File

@ -3377,7 +3377,7 @@ $container->set('notifier', $notifier);
$container->set('authenticator', $authenticator);
$container->set('translator', $translator);
$app->setBasePath($settings->_httpRoot."restapi/index.php");
$app->setBasePath(rtrim($settings->_httpRoot, '/')."/restapi/index.php");
$app->add(new RestapiAuthMiddleware($container, $app->getResponseFactory()));

View File

@ -61,6 +61,8 @@ if (true) {
$container->set('authenticator', $authenticator);
$container->set('translator', $translator);
$app->setBasePath(rtrim($settings->_httpRoot, '/'));
if (isset($GLOBALS['SEEDDMS_HOOKS']['initDMS'])) {
foreach ($GLOBALS['SEEDDMS_HOOKS']['initDMS'] as $hookObj) {
if (method_exists($hookObj, 'addMiddleware')) {