correction bug caracteres speciaux dans l'edition des pages mw_pages.0.3
authordj3c1t <dj3c1t@free.fr>
Sat, 8 Dec 2012 20:21:59 +0000 (21:21 +0100)
committerdj3c1t <dj3c1t@free.fr>
Sat, 8 Dec 2012 20:21:59 +0000 (21:21 +0100)
out/dist/views/pages/admin/add.php
out/dist/views/pages/admin/edit.php

index 1568493..c17f1af 100644 (file)
@@ -23,7 +23,7 @@
       </p>
     </li>
     <li>
-      <textarea class="tinymce" cols="60" rows="10" name="content" id="content"><?= $this->out["page"]["content"] ?></textarea>
+      <textarea class="tinymce" cols="60" rows="10" name="content" id="content"><?= htmlspecialchars($this->out["page"]["content"]) ?></textarea>
     </li>
     <li class="buttons">
       <input type="submit" value="Ajouter" />
index 4eb8676..3b3abc7 100644 (file)
@@ -23,7 +23,7 @@
       </p>
     </li>
     <li>
-      <textarea class="tinymce" cols="60" rows="10" name="content" id="content"><?= $this->out["page"]["content"] ?></textarea>
+      <textarea class="tinymce" cols="60" rows="10" name="content" id="content"><?= htmlspecialchars($this->out["page"]["content"]) ?></textarea>
     </li>
     <li class="buttons">
       <input type="submit" value="Enregistrer" />