]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/front/ShaarliMiddleware.php
Multiple small fixes
[github/shaarli/Shaarli.git] / application / front / ShaarliMiddleware.php
index e9f5552d850aead4aabe515f43521bd08087667e..fd978e997eea34b1a4d23b6452450bfff19fe8e4 100644 (file)
@@ -56,7 +56,7 @@ class ShaarliMiddleware
         } catch (ShaarliFrontException $e) {
             // Possible functional error
             $this->container->pageBuilder->reset();
-            $this->container->pageBuilder->assign('message', $e->getMessage());
+            $this->container->pageBuilder->assign('message', nl2br($e->getMessage()));
 
             $response = $response->withStatus($e->getCode());