Issue #2249723 by andrei.dincu: Replace valid_url() with UrlHelper::isValid()