aboutsummaryrefslogtreecommitdiffstats
path: root/mod/tagrm.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/tagrm.php')
-rw-r--r--mod/tagrm.php4
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),