[git] web/master.git branch master updated. 74915e1
| From: | danbrown@php.net | Date: | Thu, 16 Feb 2012 17:09:56 +0000 |
| Subject: | [git] web/master.git branch master updated. 74915e1 | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-13067@lists.php.net to get a copy of this message | ||
The branch, master on web/master.git has been updated
via 74915e17cf27a686314cc062e1ac3b172faf6edf (commit)
from 5bcfa35007aa64ed2fa0f4e08cae7915aecee3e9 (commit)
http://git.php.net/?p=web/master.git;a=log;h=74915e17cf27a686314cc062e1ac3b172faf6edf;hp=5bcfa35007aa64ed2fa0f4e08cae7915aecee3e9
Summary of changes:
manage/event.php | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
-- Log ----------------------------------------
commit 74915e17cf27a686314cc062e1ac3b172faf6edf
Author: Daniel P. Brown <danbrown@php.net>
Date: Thu Feb 16 12:02:04 2012 -0500
Now we employ this here. Neat.
diff --git a/manage/event.php b/manage/event.php
index 50556b5..c5161b7 100644
--- a/manage/event.php
+++ b/manage/event.php
@@ -79,17 +79,17 @@ if ($id && $in) {
if ($in['recur'] && $in['recur_day'])
$recur = "$in[recur]:$in[recur_day]";
$query = "UPDATE phpcal SET "
- . "tipo=$tipo,"
- . ($sdato ? "sdato='$sdato'," : "")
- . ($edato ? "edato='$edato'," : "")
- . ($recur ? "recur='$recur'," : "")
- . "ldesc='$in[ldesc]',"
- . "sdesc='$in[sdesc]',"
- . "email='$in[email]',"
- . "url='$in[url]',"
- . "country='$in[country]',"
- . "category='$in[category]'"
- . " WHERE id=$id";
+ . "tipo=".real_clean($tipo).","
+ . ($sdato ? "sdato='".real_clean($sdato)."'," :
"")
+ . ($edato ? "edato='".real_clean($edato)."'," :
"")
+ . ($recur ? "recur='".real_clean($recur)."'," :
"")
+ . "ldesc='".real_clean($in[ldesc])."',"
+ . "sdesc='".real_clean($in[sdesc])."',"
+ . "email='".real_clean($in[email])."',"
+ . "url='".real_clean($in[url])."',"
+ . "country='".real_clean($in[country])."',"
+ . "category='".real_clean($in[category])."'"
+ . " WHERE id=".real_clean($id);
db_query($query);
warn("record $id updated");
Thank you for your contribution.