File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ phpMyAdmin - ChangeLog
55
665.2.1 (not yet released)
77- issue #17522 Fix case where the routes cache file is invalid
8+ - issue #17506 Fix error when configuring 2FA without XMLWriter or Imagick
89
9105.2.0 (2022-05-10)
1011- issue #16521 Upgrade Bootstrap to version 5
Original file line number Diff line number Diff line change 1515use PhpMyAdmin \Plugins \TwoFactor \Key ;
1616use PhpMyAdmin \Plugins \TwoFactorPlugin ;
1717use PragmaRX \Google2FAQRCode \Google2FA ;
18+ use XMLWriter ;
1819
1920use function array_merge ;
2021use function class_exists ;
22+ use function extension_loaded ;
2123use function in_array ;
2224use function ucfirst ;
2325
@@ -123,7 +125,11 @@ public function getAvailableBackends()
123125 $ result [] = 'simple ' ;
124126 }
125127
126- if (class_exists (Google2FA::class) && class_exists (ImageRenderer::class)) {
128+ if (
129+ class_exists (Google2FA::class)
130+ && class_exists (ImageRenderer::class)
131+ && (class_exists (XMLWriter::class) || extension_loaded ('imagick ' ))
132+ ) {
127133 $ result [] = 'application ' ;
128134 }
129135
You can’t perform that action at this time.
0 commit comments