We have had an extractor fan put in our bathroom by our landlord, but there are exposed wires behind the fan, which is directly next to the shower. It's connected to the light switch with no isolation on or off with the light. Is this safe, the wire is red. picture is the top of the fan thanks
The extractor fan should have a junction box for the splice. There should be a cable like Romex or conduit encasing individual wires. As this is a rental, in the US electrical work in most jurisdictions is required to be done by a licensed electrician or possibly a handyman if it was a replacement, From your description it would not meet code. A photo of the wiring would get a better answer.