From 4b066e04f619c2c6f8d383daee9ceab49f39acdc Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 9 Jul 2012 22:08:25 -0700 Subject: making tags work --- mod/tagrm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/tagrm.php') diff --git a/mod/tagrm.php b/mod/tagrm.php index 5041145cc..957cf0d71 100644 --- a/mod/tagrm.php +++ b/mod/tagrm.php @@ -11,8 +11,8 @@ function tagrm_post(&$a) { if((x($_POST,'submit')) && ($_POST['submit'] === t('Cancel'))) goaway($a->get_baseurl() . '/' . $_SESSION['photo_return']); - $tag = ((x($_POST,'tag')) ? hex2bin(notags(trim($_POST['tag']))) : ''); - $item = ((x($_POST,'item')) ? intval($_POST['item']) : 0 ); + $tag = ((x($_POST,'tag')) ? trim($_POST['tag']) : ''); + $item = ((x($_POST,'item')) ? intval($_POST['item']) : 0 ); $r = q("SELECT * FROM `item` WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($item), -- cgit v1.2.3