The Philadelphia Eagles have agreed to a reworked contract with Rodney McLeod.

The agreement will keep the 28-year-old safety with the club in 2019.

McLeod suffered a season-ending knee injury in Week 3. He has two seasons left on a five-year deal signed in 2016, but was a candidate to be cut due to his $9.9 million salary and low dead-cap number.

"It's a very exciting time," McLeod said. "Honestly, Philly is where I want to be. I'm glad we were able to get things done and handled early on. I really get to focus more on rehab and getting back out there with the boys and getting back to making plays for the team this year."

The Eagles entered the offseason more than $15 million over the salary cap.