Jack McGlynn's spectacular free-kick caught out Blackburn Rovers goalkeeper Balazs Toth as Stoke City went ahead just before half-time.