diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-27 19:27:14 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-27 19:27:14 -0700 |
commit | 2e5fb9c37e76c20ea0c25e1215a549b561dc68a8 (patch) | |
tree | d87b4909049a6ae4585284cd8e1dd9c399a26f21 /mod/item.php | |
parent | e15265be3c687d5830a44de38fc2e5311dc00d86 (diff) | |
download | volse-hubzilla-2e5fb9c37e76c20ea0c25e1215a549b561dc68a8.tar.gz volse-hubzilla-2e5fb9c37e76c20ea0c25e1215a549b561dc68a8.tar.bz2 volse-hubzilla-2e5fb9c37e76c20ea0c25e1215a549b561dc68a8.zip |
lots of formatting, bug fixes on profile updates, i18n
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mod/item.php b/mod/item.php index 552d3e3b3..71d8afd24 100644 --- a/mod/item.php +++ b/mod/item.php @@ -64,7 +64,7 @@ function item_post(&$a) { $str_contact_deny = implode('',$contact_deny); } - + $title = notags(trim($_POST['title'])); $body = escape_tags(trim($_POST['body'])); if(! strlen($body)) { @@ -118,8 +118,8 @@ function item_post(&$a) { $r = q("INSERT INTO `item` (`uid`,`type`,`contact-id`,`owner-name`,`owner-link`,`owner-avatar`, `created`, - `edited`, `uri`, `body`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`) - VALUES( %d, '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )", + `edited`, `uri`, `title`, `body`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`) + VALUES( %d, '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )", intval($profile_uid), dbesc($_POST['type']), intval($contact_id), @@ -129,7 +129,8 @@ function item_post(&$a) { datetime_convert(), datetime_convert(), dbesc($uri), - dbesc(escape_tags(trim($_POST['body']))), + dbesc($title), + dbesc($body), dbesc($str_contact_allow), dbesc($str_group_allow), dbesc($str_contact_deny), |