Skip to content
  • Alexander Larsson's avatar
    Don't ever sniff desktop files when the filename is known. In other words, · 9fdf70ba
    Alexander Larsson authored
    2009-02-20  Alexander Larsson  <alexl@redhat.com>
    
            * gcontenttype.c:
            (g_content_type_guess):
    	Don't ever sniff desktop files when the filename is known.
    	In other words, only allow desktop files with the .desktop extension
    	and when the filename isn't known.
    	This is a security precaution since desktop files can execute
    	arbitrary code when launched and we don't want to allow them to
    	try and hide as another type. There is no legit reason to not
    	have the .desktop extension anyway.
    
    
    
    svn path=/trunk/; revision=7892
    9fdf70ba
To find the state of this project's repository at the time of any of these versions, check out the tags.