Unify newlines to LF in TemplateAddForm
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 27 Mar 2014 18:16:11 +0000 (19:16 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 27 Mar 2014 18:16:57 +0000 (19:16 +0100)
wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php

index f867313954491c0dfcccfeb7686bd354d13b1204..ba2178ad007730832747cca72bce75c25eabaad1 100644 (file)
@@ -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