An exact solution for flow in a porous pipe