I won't comment on oil because we're a natural gas industry.
Pipelines are an incredibly safe way to transport natural gas, and they've been relied upon for decades and decades to do that. The safety measures that are in place are.... First of all, it's a highly regulated industry at the national level. For pipelines that are interprovincial or international, it's regulated by the National Energy Board, and the safety standards are world-class.
Within each province the utilities are regulated by provincial energy boards. Here in Ontario there is the Ontario Energy Board; the Régie de l'énergie is in Quebec; and its equivalent in Alberta is the Alberta Energy and Utilities Board. Safety standards are very significant. There are often independent safety authorities governing the safe transmission of gas through pipelines and through distribution systems.