Answer based on context:

The Cardinals began their 2007 campaign on the road against their NFC West foe, the San Francisco 49ers. In the first quarter, Arizona trailed early as 49ers RB Frank Gore got a 6-yard TD run for the only score of the period. In the second quarter, the Cardinals took the lead with kicker Neil Rackers getting a 35-yard field goal, while RB Edgerrin James got a 7-yard TD run. San Francisco would tie the game with kicker Joe Nedney getting a 33-yard field goal. In the third quarter, the 49ers regained the lead with Nedney kicking a 30-yard field goal for the only score of the period. In the fourth quarter, the Cardinals retook the lead with QB Matt Leinart completing a 5-yard TD pass to WR Anquan Boldin. However, late in the game, the Cards' defense failed to hold off San Francisco's ensuing drive, which ended with WR Arnaz Battle getting a 1-yard TD run. With just over:20 seconds left in the game, Arizona had one final chance to save the game. Leinart's pass to WR Larry Fitzgerald was intercepted by 49ers CB Shawntae Spencer. With the heartbreaking loss, the Cardinals began their season at 0-1. Q1 - SF - 11:24 - Frank Gore 6-yard TD run (Joe Nedney kick) (SF 7-0) Q2 - ARI - 12:55 - Neil Rackers 35-yard FG (SF 7-3) Q2 - ARI - 9:15 - Edgerrin James 7-yard TD run (Rackers kick) (ARI 10-7) Q2 - SF - 3:40 - Joe Nedney 33-yard FG (10-10) Q3 - SF - 11:20 - Joe Nedney 30-yard FG (SF 13-10) Q4 - ARI - 6:46 - 5-yard TD pass from Matt Leinart to Anquan Boldin (Rackers kick) (ARI 17-13) Q4 - SF - 0:26 - Arnaz Battle 1-yard TD run (Nedney kick) (SF 20-17)

Which quarterback had the only touchdown pass?
Matt Leinart