The oil is going to be fine if the gasoline is physically leaking in to the engine bay. Whether it's the head, the fuel rail or side of the block that is getting fuel on it, it doesn't matter, it's not going in to the cylinders.
The only reason I mentioned in to the oil is because when you...