mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-02-02 06:31:56 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
28cc3dabe3
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()));
|
||||
|
||||
|
|
|
|||
|
|
@ -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')) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user