[icinga-checkins] icinga.org: icingaweb2-module-director/master: host/agent: provide Windows newlines

git at icinga.org git at icinga.org
Tue Jun 28 02:01:18 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 4de8bfd88cba633844df64352881b3966c781f4a
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=4de8bfd88cba633844df64352881b3966c781f4a

Author: Thomas Gelf <thomas at gelf.net>
Date:   Tue Jun 28 02:01:05 2016 +0200

host/agent: provide Windows newlines

---

 application/controllers/HostController.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/controllers/HostController.php b/application/controllers/HostController.php
index 7e16646..d9c1a76 100644
--- a/application/controllers/HostController.php
+++ b/application/controllers/HostController.php
@@ -83,7 +83,7 @@ class HostController extends ObjectController
 
                 $wizard = $this->view->wizard = new AgentWizard($this->object);
                 $wizard->setTicketSalt($this->api()->getTicketSalt());
-                echo $wizard->renderWindowsInstaller();
+                echo preg_replace('/\n/', "\r\n", $wizard->renderWindowsInstaller());
                 exit;
         }
 



More information about the icinga-checkins mailing list