Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLAT-10050:adding support in L3 CDN tokenizer #8700

Merged
merged 10 commits into from Aug 19, 2019

PLAT-10050:small fix

  • Loading branch information...
ravitshalem committed Aug 14, 2019
commit bac848269cb184f5917b6bf11106e84e452421fb
@@ -76,18 +76,24 @@ public static function setFlavorsUrlWithToken(&$flavors, $urlTokenized, $flavorR
}
else
{
$flavorIdPos = strpos($flavor[self::URL], self::FLAVOR_ID . self::SLASH);
$restUrl = '';
if ($flavorIdPos !== false)
{
$restUrl = substr($flavors[$flavorKey][self::URL], $flavorIdPos + strlen(self::FLAVOR_ID . self::SLASH));
}
$restUrl = self::getRestUrl($flavor);
}
$flavors[$flavorKey][self::URL] = $urlTokenized . $restUrl;
}
}
}
public static function getRestUrl($flavor)
{
$restUrl = '';
$flavorIdPos = strpos($flavor[self::URL], self::FLAVOR_ID . self::SLASH);
if ($flavorIdPos !== false)
{
$restUrl = substr($flavor[self::URL], $flavorIdPos + strlen(self::FLAVOR_ID . self::SLASH));
}
return $restUrl;
}
public function calculateToken($urlToToken)
{
if ($urlToToken === '')
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.