X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffiler.php;h=4e79f337dcff22502ac15d4c0673872253678312;hb=38f9fab6c47882bcb0c1ff4a1f75fd393c6ad352;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..4e79f337dc --- 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,9 @@ 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 -')),