From 6cf4d24a09d765bebb32f852c45eec887ebf8add Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 4 Sep 2015 14:50:02 +0200 Subject: document-portal: Use xdg_app_is_valid_name() to validate app names --- document-portal/xdp-fuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'document-portal') diff --git a/document-portal/xdp-fuse.c b/document-portal/xdp-fuse.c index 1d53e34..434814f 100644 --- a/document-portal/xdp-fuse.c +++ b/document-portal/xdp-fuse.c @@ -889,7 +889,7 @@ xdp_lookup (fuse_ino_t parent, break; case BY_APP_INO: - if (g_dbus_is_name (name) && !g_dbus_is_unique_name (name)) + if (xdg_app_is_valid_name (name)) { guint32 app_id = get_app_id_from_name (name); *inode = make_inode (APP_DIR_INO_CLASS, app_id); -- cgit v1.2.1