cvs: pearweb /include/notes ManualNotes.class.php /templates/notes note-manage-admin.tpl.php view-full-note.tpl.php

From: Date: Fri, 23 Mar 2007 17:02:28 +0000
Subject: cvs: pearweb /include/notes ManualNotes.class.php /templates/notes note-manage-admin.tpl.php view-full-note.tpl.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-45386@lists.php.net to get a copy of this message
cellog Fri Mar 23 17:02:28 2007 UTC Modified files: /pearweb/include/notes ManualNotes.class.php /pearweb/templates/notes note-manage-admin.tpl.php view-full-note.tpl.php Log: display compiled note text for admin to notes http://cvs.php.net/viewvc.cgi/pearweb/include/notes/ManualNotes.class.php?r1=1.14&r2=1.15&diff_format=u Index: pearweb/include/notes/ManualNotes.class.php diff -u pearweb/include/notes/ManualNotes.class.php:1.14 pearweb/include/notes/ManualNotes.class.php:1.15 --- pearweb/include/notes/ManualNotes.class.php:1.14 Fri Mar 23 16:40:25 2007 +++ pearweb/include/notes/ManualNotes.class.php Fri Mar 23 17:02:28 2007 @@ -195,7 +195,9 @@ if ($all) { $sql = " - SELECT * + SELECT note_id, page_url, user_name, user_handle, + note_compiled as note_text, note_time, note_approved, + note_approved_by, note_deleted, note_text as unfiltered_note FROM {$this->notesTableName} WHERE note_approved = ? @@ -208,7 +210,7 @@ $sql = " SELECT note_id, page_url, user_name, user_handle, note_compiled as note_text, note_time, note_approved, - note_approved_by, note_deleted + note_approved_by, note_deleted, note_text as unfiltered_note FROM {$this->notesTableName} WHERE page_url = ? AND note_approved = 'yes' OR note_approved = 'pending' @@ -219,7 +221,7 @@ $sql = " SELECT note_id, page_url, user_name, user_handle, note_compiled as note_text, note_time, note_approved, - note_approved_by, note_deleted + note_approved_by, note_deleted, note_text as unfiltered_note FROM {$this->notesTableName} WHERE page_url = ? AND note_approved = 'yes' @@ -230,7 +232,7 @@ $sql = " SELECT note_id, page_url, user_name, user_handle, note_compiled as note_text, note_time, note_approved, - note_approved_by, note_deleted + note_approved_by, note_deleted, note_text as unfiltered_note FROM {$this->notesTableName} WHERE page_url = ? AND note_approved = ? http://cvs.php.net/viewvc.cgi/pearweb/templates/notes/note-manage-admin.tpl.php?r1=1.13&r2=1.14&diff_format=u Index: pearweb/templates/notes/note-manage-admin.tpl.php diff -u pearweb/templates/notes/note-manage-admin.tpl.php:1.13 pearweb/templates/notes/note-manage-admin.tpl.php:1.14 --- pearweb/templates/notes/note-manage-admin.tpl.php:1.13 Fri Mar 23 16:51:57 2007 +++ pearweb/templates/notes/note-manage-admin.tpl.php Fri Mar 23 17:02:28 2007 @@ -38,7 +38,7 @@ </tr> <?php foreach ($pendingComments as $pendingComment): ?> <div id="noteView<?php echo $pendingComment['note_id'] ?>" style="visibility: hidden; display: none;"> - <?php echo htmlspecialchars($pendingComment['note_text']); ?> + <?php echo $pendingComment['note_text']; ?> </div> <tr> <th class="form-label_left"> @@ -46,10 +46,10 @@ </th> <td class="form-input"> <?php - if (strlen($pendingComment['note_text']) > 200) { - echo substr(htmlspecialchars($pendingComment['note_text']), 0, 200) . '...'; + if (strlen($pendingComment['unfiltered_note']) > 200) { + echo substr(htmlspecialchars($pendingComment['unfiltered_note']), 0, 200) . '...'; } else { - echo htmlspecialchars($pendingComment['note_text']); + echo $pendingComment['note_text']; } ?></td> <td class="form-input"> http://cvs.php.net/viewvc.cgi/pearweb/templates/notes/view-full-note.tpl.php?r1=1.2&r2=1.3&diff_format=u Index: pearweb/templates/notes/view-full-note.tpl.php diff -u pearweb/templates/notes/view-full-note.tpl.php:1.2 pearweb/templates/notes/view-full-note.tpl.php:1.3 --- pearweb/templates/notes/view-full-note.tpl.php:1.2 Fri Mar 23 16:30:45 2007 +++ pearweb/templates/notes/view-full-note.tpl.php Fri Mar 23 17:02:28 2007 @@ -12,7 +12,7 @@ if (PEAR::isError($noteContent)) { echo 'Problem retrieving the note'; } else { - echo htmlspecialchars($noteContent['note_text']); + echo $noteContent['note_text']; } ?> </p>

« previous php.pear.cvs (#45386) next »