From 025652a3e1e21ca9b438f0af001bc81688f5dd34 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 27 Mar 2014 19:16:11 +0100 Subject: [PATCH] Unify newlines to LF in TemplateAddForm --- wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php index f867313954..ba2178ad00 100644 --- a/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php @@ -107,7 +107,7 @@ class TemplateAddForm extends AbstractForm { parent::readFormParameters(); if (isset($_POST['tplName'])) $this->tplName = StringUtil::trim($_POST['tplName']); - if (isset($_POST['templateSource'])) $this->templateSource = $_POST['templateSource']; + if (isset($_POST['templateSource'])) $this->templateSource = StringUtil::unifyNewlines($_POST['templateSource']); if (isset($_POST['templateGroupID'])) $this->templateGroupID = intval($_POST['templateGroupID']); // get package id for this template -- 2.20.1