Skip to content

Commit

Permalink
1 more try
Browse files Browse the repository at this point in the history
  • Loading branch information
AltamashShaikh committed Jan 10, 2025
1 parent dd51934 commit 52021da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BlockedIpRanges/Azure.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function getDownloadUrl()
// should look like 'https://download.microsoft.com/download/7/1/D/71D86715-5596-4529-9B13-DA13A5DE5B63/ServiceTags_Public_20201207.json'

// Need to set this custom UA as Azure was returning a 404 page for CURL requests
$contentDownloadPage = Http::sendHttpRequestBy(Http::getTransportMethod(), 'https://www.microsoft.com/en-us/download/details.aspx?id=56519', 120, null, null, null, 0, false, false, false, false, 'GET', null, null, null, ['User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0']);
$contentDownloadPage = Http::sendHttpRequestBy(Http::getTransportMethod(), 'https://www.microsoft.com/en-us/download/details.aspx?id=56519', 120, 'Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0', null, null, 0, false, false, false, false, 'GET', null, null, null, ['User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/81.0']);

Check warning on line 61 in BlockedIpRanges/Azure.php

View workflow job for this annotation

GitHub Actions / PHPCS

Azure.php: Line exceeds 250 characters; contains 380 characters
$prefixUrl = 'href="';
$prefixStrLen = mb_strlen($prefixUrl, 'UTF-8');
$posStart = mb_strpos($contentDownloadPage, $prefixUrl . 'https://download.microsoft.com/download/', 0, 'UTF-8');
Expand Down

0 comments on commit 52021da

Please sign in to comment.