When resource_filterexternalpages are turned on then uploaded HTML files are also now filtered properly.