Goalkeeper Mark Cousins scored in the fourth minute of stoppage time to salvage a point for Ebbsfleet United at York in the National League.
The home side took the lead with just six minutes on the clock when Ebbsfleet failed to clear and the loose ball found Lenell John-Lewis who fired past Cousins.
Toby Edser came close to an equaliser for the visitors midway through the opening period, but his powerful shot went wide.
York looked to have done enough to claim their first win in a month and pull clear of the relegation zone, only for Cousins to score with a header from a corner deep into added time.
The point left Ebbsfleet in the relegation places, one point adrift of York who are 19th.
Subscribe or register today to discover more from DonegalLive.ie
Buy the e-paper of the Donegal Democrat, Donegal People's Press, Donegal Post and Inish Times here for instant access to Donegal's premier news titles.
Keep up with the latest news from Donegal with our daily newsletter featuring the most important stories of the day delivered to your inbox every evening at 5pm.