/** * Some URLs are missing version and go to redirection loop. We try to check here if URL looks fine. */ public function validateURL() { $url = $this->getURL(); if (preg_match('#' . srokap_plugin::getCommunityPageURL() . 'plugins/([0-9]*)/([^/]+)/#', $url, $matches)) { return true; } return false; }