Skip to content

Commit d9216e8

Browse files
authored
Update DefaultController.php
1 parent e58b01b commit d9216e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/DefaultController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class DefaultController extends \yii\web\Controller
1818
*/
1919
public function actionIndex($page = 'README.md')
2020
{
21-
if (strpos($page, '.png') !== false) {
21+
if (preg_match('/^docs\/images\/image\d+\.png$/',$page)) {
2222
$file = Yii::getAlias("@mdm/admin/{$page}");
2323
return Yii::$app->getResponse()->sendFile($file);
2424
}

0 commit comments

Comments
 (0)