X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffiler.php;h=c0cca9e6df072e5a9495e0777db58a08592591b4;hb=60871555f539caec07f2dcfe37f11fc090bac1be;hp=3b3a379310aa0b800653d753202126d88182bd11;hpb=f39e8126773e2a030cf84c8b9d428cc78546c1b9;p=friendica.git diff --git a/mod/filer.php b/mod/filer.php old mode 100755 new mode 100644 index 3b3a379310..c0cca9e6df --- a/mod/filer.php +++ b/mod/filer.php @@ -11,8 +11,8 @@ function filer_content(&$a) { killme(); } - $term = notags(trim($_GET['term'])); - $item_id = (($a->argc > 1) ? notags(trim($a->argv[1])) : 0); + $term = unxmlify(trim($_GET['term'])); + $item_id = (($a->argc > 1) ? intval($a->argv[1]) : 0); logger('filer: tag ' . $term . ' item ' . $item_id); @@ -22,7 +22,8 @@ function filer_content(&$a) { } else { // return filer dialog $filetags = get_pconfig(local_user(),'system','filetags'); - $filetags = explode("][", trim($filetags,"[]")); + $filetags = file_tag_file_to_list($filetags,'file'); + $filetags = explode(",", $filetags); $tpl = get_markup_template("filer_dialog.tpl"); $o = replace_macros($tpl, array( '$field' => array('term', t("Save to Folder:"), '', '', $filetags, t('- select -')),