That is crazy . . . I had the same happen to mine during a night ride this year.
I just went through the process of this on the "seepage" post. Look there, it has all the info you need.
Basically you will need a new ferrule, snip the line for a plush fit, fit the ferrule into the line, make sure it is tight, put it through the bolt and re-attach and bleed.
Peace.