com web/master: Forgot to decode, too, due to the filtration.: manage/user-notes.php

From: Date: Thu, 10 May 2012 18:49:53 +0000
Subject: com web/master: Forgot to decode, too, due to the filtration.: manage/user-notes.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-13509@lists.php.net to get a copy of this message
Commit: ebb20343b3e7f1c80533b04ecc778015ce77fa80 Author: Daniel P. Brown <danbrown@php.net> Thu, 10 May 2012 14:49:53 -0400 Parents: f2a6fb89fa13e5ba05293c6696fa8612fd62f541 Branches: master Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=ebb20343b3e7f1c80533b04ecc778015ce77fa80 Log: Forgot to decode, too, due to the filtration. Changed paths: M manage/user-notes.php Diff: diff --git a/manage/user-notes.php b/manage/user-notes.php index f1c4670..267c324 100644 --- a/manage/user-notes.php +++ b/manage/user-notes.php @@ -297,7 +297,7 @@ case 'edit': $sect = (isset($_POST['sect']) ? escape($_POST['sect']) : addslashes($row['sect'])); if (isset($note) && $action == "edit") { - if (db_query("UPDATE note SET note='$note',user='$email',sect='$sect',updated=NOW() WHERE id=$id")) { + if (db_query("UPDATE note SET note='".html_entity_decode($note)."',user='$email',sect='$sect',updated=NOW() WHERE id=$id")) { // ** alerts ** //$mailto .= get_emails_for_sect($row["sect"]);

« previous php.webmaster (#13509) next »