diff options
author | friendica <info@friendica.com> | 2012-07-09 22:08:25 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-07-09 22:08:25 -0700 |
commit | 4b066e04f619c2c6f8d383daee9ceab49f39acdc (patch) | |
tree | c9f3376ffce342333b60d848430ee13b3329d903 /mod/tagrm.php | |
parent | 8855cb9c286eb66ad96b3388d85ccc57434a6db3 (diff) | |
download | volse-hubzilla-4b066e04f619c2c6f8d383daee9ceab49f39acdc.tar.gz volse-hubzilla-4b066e04f619c2c6f8d383daee9ceab49f39acdc.tar.bz2 volse-hubzilla-4b066e04f619c2c6f8d383daee9ceab49f39acdc.zip |
making tags work
Diffstat (limited to 'mod/tagrm.php')
-rw-r--r-- | mod/tagrm.php | 4 |
1 files changed, 2 insertions, 2 deletions
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), |