Clearing up the confusion, even among some home inspectors, regarding the proper distance that a water heater TPR valve extension should terminate from the floor. 2018 international plumbing code states that it must not terminate more than 6" above and not less then than 2x the pipe diameter above the floor or flood level rim of the waste receptor.
Safety hazard? Yes.
Easy fix? Yes.