[opw-web] Fix editing descriptions with a newline
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [opw-web] Fix editing descriptions with a newline
- Date: Tue, 15 Mar 2016 01:14:48 +0000 (UTC)
commit 585edd60d158e5759bb12df5524eac57b1372af8
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Mon Mar 14 21:12:53 2016 -0400
Fix editing descriptions with a newline
For a text-area we need to use escapenewlines not nl2br
modules/mod_manage_programs.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/modules/mod_manage_programs.php b/modules/mod_manage_programs.php
index 536d41d..07e7ef6 100644
--- a/modules/mod_manage_programs.php
+++ b/modules/mod_manage_programs.php
@@ -188,7 +188,7 @@ else if ($action == 'editor')
$skin->assign(array(
'editor_title' => $page_title,
'title' => htmlspecialchars($title),
- 'description' => nl2br(htmlspecialchars($description)),
+ 'description' => escapenewlines(htmlspecialchars($description)),
'start_date' => $start_date,
'end_date' => $end_date,
'dl_student' => $dl_student,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]