com web/master: Fix the user note editor on master, which completely obliterates the notes (and has for a few months).: manage/user-notes.php
| From: | Daniel P. Brown | Date: | Thu, 10 May 2012 18:41:19 +0000 |
| Subject: | com web/master: Fix the user note editor on master, which completely obliterates the notes (and has for a few months).: manage/user-notes.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-13508@lists.php.net to get a copy of this message | ||
Commit: f2a6fb89fa13e5ba05293c6696fa8612fd62f541
Author: Daniel P. Brown <danbrown@php.net> Thu, 10 May 2012 14:41:19 -0400
Parents: 9a51032181eb377d4348bd3fec03705c862d614a
Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=f2a6fb89fa13e5ba05293c6696fa8612fd62f541
Log:
Fix the user note editor on master, which completely obliterates the notes (and has for a few
months).
Changed paths:
M manage/user-notes.php
Diff:
diff --git a/manage/user-notes.php b/manage/user-notes.php
index 5c01ab0..f1c4670 100644
--- a/manage/user-notes.php
+++ b/manage/user-notes.php
@@ -318,7 +318,7 @@ case 'edit':
$note = isset($note) ? $note : addslashes($row['note']);
if ($action == "preview") {
- echo "<p class=\"notepreview\">",clean_note(stripslashes($note)),
+ echo "<p class=\"notepreview\">",stripslashes($note),
"<br /><span class=\"author\">",date("d-M-Y
h:i",$row['ts'])," ",
stripslashes($email),"</span></p>";
}
@@ -332,10 +332,10 @@ case 'edit':
</tr>
<tr>
<th align="right">email:</th>
- <td><input type="text" name="email" value="<?= clean($email)
?>" size="30" maxlength="80" /></td>
+ <td><input type="text" name="email" value="<?=
escape($email) ?>" size="30" maxlength="80" /></td>
</tr>
<tr>
- <td colspan="2"><textarea name="note" cols="70"
rows="15"><?= clean($note) ?></textarea></td>
+ <td colspan="2"><textarea name="note" cols="70"
rows="15"><?= escape($note) ?></textarea></td>
</tr>
<tr>
<td align="center" colspan="2">