mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-14 13:15:35 -04:00
document-portal: Use xdg_app_is_valid_name() to validate app names
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user