Nickelodeon star Miranda Cosgrove wasn't safe -- even in the Happiest Place on Earth -- from an alleged stalker who was caught creeping around her at Disneyland before getting arrested.
Law enforcement sources tell TMZ ... Joshua Stockton was hauled to jail Wednesday after he allegedly followed Cosgrove to the theme park and violated a court order to stay 100 yds. away.
We're told Cosgrove notified the cops after she spotted Stockton tailing her. LAPD busted him later for felony stalking ... and for violating the restraining order.