mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 03:24:52 +00:00
https: Prevent man-in-the-middle attacks due to using http proto and server-side redirection
See https://github.com/ValveSoftware/Source-1-Games/issues/7120
This commit is contained in:
parent
aea94b32cb
commit
57c1994ab5
19 changed files with 46 additions and 45 deletions
|
@ -3331,7 +3331,7 @@ void CBackpackPanel::DoSellMarketplace()
|
|||
}
|
||||
uint32 nAssetContext = 2; // k_EEconContextBackpack
|
||||
char szURL[512];
|
||||
V_snprintf( szURL, sizeof(szURL), "http://%ssteamcommunity.com/my/inventory/?sellOnLoad=1#%d_%d_%llu", pszPrefix, engine->GetAppID(), nAssetContext, pItem->GetItemID() );
|
||||
V_snprintf( szURL, sizeof(szURL), "https://%ssteamcommunity.com/my/inventory/?sellOnLoad=1#%d_%d_%llu", pszPrefix, engine->GetAppID(), nAssetContext, pItem->GetItemID() );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( szURL );
|
||||
}
|
||||
}
|
||||
|
@ -4046,7 +4046,7 @@ void CBackpackPanel::AttemptToShowItemInMarket( item_definition_index_t iItemDef
|
|||
g_pVGuiLocalize->ConvertUnicodeToANSI( g_pVGuiLocalize->Find( pItemDef->GetItemBaseName() ), pszItemName, sizeof( pszItemName ) );
|
||||
|
||||
char szURL[512];
|
||||
V_snprintf( szURL, sizeof( szURL ), "http://%ssteamcommunity.com/market/listings/%d/%s", pszPrefix, engine->GetAppID(), pszItemName );
|
||||
V_snprintf( szURL, sizeof( szURL ), "https://%ssteamcommunity.com/market/listings/%d/%s", pszPrefix, engine->GetAppID(), pszItemName );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( szURL );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -544,7 +544,7 @@ const char* UniverseToCommunityURL( EUniverse universe )
|
|||
default: // return public if we don't have a better guess.
|
||||
case k_EUniversePublic: return "https://steamcommunity.com";
|
||||
case k_EUniverseBeta: return "https://beta.steamcommunity.com";
|
||||
case k_EUniverseDev: return "https://localhost/community";
|
||||
case k_EUniverseDev: return "http://localhost/community";
|
||||
}
|
||||
|
||||
// Should never get here.
|
||||
|
|
|
@ -3712,7 +3712,7 @@ void CItemModelPanel::OnCommand( const char *command )
|
|||
}
|
||||
uint32 nAssetContext = 2; // k_EEconContextBackpack
|
||||
char szURL[512];
|
||||
V_snprintf( szURL, sizeof(szURL), "http://%ssteamcommunity.com/my/inventory/?sellOnLoad=1#%d_%d_%llu", pszPrefix, engine->GetAppID(), nAssetContext, GetItem()->GetItemID() );
|
||||
V_snprintf( szURL, sizeof(szURL), "https://%ssteamcommunity.com/my/inventory/?sellOnLoad=1#%d_%d_%llu", pszPrefix, engine->GetAppID(), nAssetContext, GetItem()->GetItemID() );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( szURL );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1232,7 +1232,7 @@ void CStorePage::OnCommand( const char *command )
|
|||
{
|
||||
if ( steamapicontext && steamapicontext->SteamFriends() )
|
||||
{
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "http://steamcommunity.com/market/search?appid=440" );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "https://steamcommunity.com/market/search?appid=440" );
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -1642,7 +1642,7 @@ void CStoreCart::AddToCart( const econ_store_entry_t *pEntry, const char* pszPag
|
|||
g_pVGuiLocalize->ConvertUnicodeToANSI( g_pVGuiLocalize->Find( pItemDef->GetItemBaseName() ), pszItemName, sizeof( pszItemName ) );
|
||||
|
||||
char szURL[512];
|
||||
V_sprintf_safe( szURL, "http://%ssteamcommunity.com/market/listings/%d/%s", pszPrefix, engine->GetAppID(), pszItemName );
|
||||
V_sprintf_safe( szURL, "https://%ssteamcommunity.com/market/listings/%d/%s", pszPrefix, engine->GetAppID(), pszItemName );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( szURL );
|
||||
}
|
||||
return;
|
||||
|
|
|
@ -290,7 +290,7 @@ bool CTradingStartDialog::ExtractSteamIDFromURL( char *inputURL )
|
|||
int iLen = Q_strlen(inputURL);
|
||||
|
||||
// First, see if it's a profile link. If it is, clip the SteamID from it.
|
||||
const char *pszProfilePrepend = ( localUniverse == k_EUniversePublic ) ? "http://steamcommunity.com/profiles/" : "http://beta.steamcommunity.com/profiles/";
|
||||
const char *pszProfilePrepend = ( localUniverse == k_EUniversePublic ) ? "https://steamcommunity.com/profiles/" : "https://beta.steamcommunity.com/profiles/";
|
||||
int iProfilePrependLen = Q_strlen(pszProfilePrepend);
|
||||
if ( Q_strnicmp( pszProfilePrepend, inputURL, iProfilePrependLen ) == 0 )
|
||||
{
|
||||
|
@ -308,7 +308,7 @@ bool CTradingStartDialog::ExtractSteamIDFromURL( char *inputURL )
|
|||
else
|
||||
{
|
||||
// If it's an id link, we download it and extract the steam ID from it.
|
||||
const char *pszIDPrepend = ( localUniverse == k_EUniversePublic ) ? "http://steamcommunity.com/id/" : "http://beta.steamcommunity.com/id/";
|
||||
const char *pszIDPrepend = ( localUniverse == k_EUniversePublic ) ? "https://steamcommunity.com/id/" : "https://beta.steamcommunity.com/id/";
|
||||
int iIDPrependLen = Q_strlen(pszIDPrepend);
|
||||
if ( Q_strnicmp( pszIDPrepend, inputURL, iIDPrependLen ) == 0 )
|
||||
{
|
||||
|
|
|
@ -354,7 +354,7 @@ public:
|
|||
{
|
||||
if ( steamapicontext && steamapicontext->SteamFriends() )
|
||||
{
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "http://www.youtube.com/create_account?next=/" );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "https://www.youtube.com/create_account?next=/" );
|
||||
}
|
||||
}
|
||||
else if ( !Q_strnicmp( command, "confirm", 7 ) )
|
||||
|
@ -488,7 +488,7 @@ public:
|
|||
{
|
||||
if ( steamapicontext && steamapicontext->SteamFriends() )
|
||||
{
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "http://www.youtube.com/t/terms" );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "https://www.youtube.com/t/terms" );
|
||||
}
|
||||
}
|
||||
else if ( !Q_strnicmp( command, "confirm", 7 ) )
|
||||
|
@ -521,18 +521,18 @@ public:
|
|||
CUtlString description( szDesc );
|
||||
if ( steamapicontext && steamapicontext->SteamUser() )
|
||||
{
|
||||
const char *pchCommunityURL = "http://steamcommunity.com/";
|
||||
const char *pchCommunityURL = "https://steamcommunity.com/";
|
||||
switch ( eSteamUniverse )
|
||||
{
|
||||
case k_EUniverseDev:
|
||||
pchCommunityURL = "http://localhost/community/";
|
||||
break;
|
||||
case k_EUniverseBeta:
|
||||
pchCommunityURL = "http://beta.steamcommunity.com/";
|
||||
pchCommunityURL = "https://beta.steamcommunity.com/";
|
||||
break;
|
||||
case k_EUniversePublic:
|
||||
default:
|
||||
pchCommunityURL = "http://steamcommunity.com/";
|
||||
pchCommunityURL = "https://steamcommunity.com/";
|
||||
}
|
||||
description.Format( "%s\n\n%sprofiles/%llu", szDesc, pchCommunityURL, steamapicontext->SteamUser()->GetSteamID().ConvertToUint64() );
|
||||
}
|
||||
|
|
|
@ -561,10 +561,10 @@ void CFilePublishDialog::Steam_OnPublishFile( SubmitItemUpdateResult_t *pResult,
|
|||
switch ( universe )
|
||||
{
|
||||
case k_EUniversePublic:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "http://steamcommunity.com/sharedfiles/filedetails/?id=%llu&requirelogin=true", m_nFileID ) );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "https://steamcommunity.com/sharedfiles/filedetails/?id=%llu&requirelogin=true", m_nFileID ) );
|
||||
break;
|
||||
case k_EUniverseBeta:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "http://beta.steamcommunity.com/sharedfiles/filedetails/?id=%llu&requirelogin=true", m_nFileID ) );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "https://beta.steamcommunity.com/sharedfiles/filedetails/?id=%llu&requirelogin=true", m_nFileID ) );
|
||||
break;
|
||||
case k_EUniverseDev:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "http://localhost/community/sharedfiles/filedetails/?id=%llu&requirelogin=true", m_nFileID ) );
|
||||
|
|
|
@ -1936,8 +1936,8 @@ void CHudMainMenuOverride::OnCommand( const char *command )
|
|||
CSteamID steamID = steamapicontext->SteamUser()->GetSteamID();
|
||||
switch ( GetUniverse() )
|
||||
{
|
||||
case k_EUniversePublic: steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStr1024( "http://steamcommunity.com/profiles/%llu/promocodes/tf2", steamID.ConvertToUint64() ) ); break;
|
||||
case k_EUniverseBeta: steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStr1024( "http://beta.steamcommunity.com/profiles/%llu/promocodes/tf2", steamID.ConvertToUint64() ) ); break;
|
||||
case k_EUniversePublic: steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStr1024( "https://steamcommunity.com/profiles/%llu/promocodes/tf2", steamID.ConvertToUint64() ) ); break;
|
||||
case k_EUniverseBeta: steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStr1024( "https://beta.steamcommunity.com/profiles/%llu/promocodes/tf2", steamID.ConvertToUint64() ) ); break;
|
||||
case k_EUniverseDev: steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStr1024( "http://localhost/community/profiles/%llu/promocodes/tf2", steamID.ConvertToUint64() ) ); break;
|
||||
}
|
||||
}
|
||||
|
@ -1974,9 +1974,10 @@ void CHudMainMenuOverride::OnCommand( const char *command )
|
|||
CSteamID steamID = steamapicontext->SteamUser()->GetSteamID();
|
||||
switch ( GetUniverse() )
|
||||
{
|
||||
case k_EUniversePublic: steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "http://www.teamfortress.com/meetyourmatch" ); break;
|
||||
case k_EUniversePublic: steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "https://www.teamfortress.com/meetyourmatch" ); break;
|
||||
case k_EUniverseBeta: // Fall through
|
||||
case k_EUniverseDev: steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "http://csham.valvesoftware.com/tf.com/meetyourmatch" ); break;
|
||||
// TODO: Dead link, need to fix.
|
||||
case k_EUniverseDev: steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "https://csham.valvesoftware.com/tf.com/meetyourmatch" ); break;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -1992,9 +1993,9 @@ void CHudMainMenuOverride::OnCommand( const char *command )
|
|||
CSteamID steamID = steamapicontext->SteamUser()->GetSteamID();
|
||||
switch ( GetUniverse() )
|
||||
{
|
||||
case k_EUniversePublic: steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "http://www.teamfortress.com/gargoyles_and_gravel" ); break;
|
||||
case k_EUniversePublic: steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "https://www.teamfortress.com/gargoyles_and_gravel" ); break;
|
||||
case k_EUniverseBeta: // Fall through
|
||||
case k_EUniverseDev: steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "http://www.teamfortress.com/gargoyles_and_gravel" ); break;
|
||||
case k_EUniverseDev: steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "https://www.teamfortress.com/gargoyles_and_gravel" ); break;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -531,7 +531,7 @@ void CTFStreamManager::UpdateTwitchTvAccounts()
|
|||
//
|
||||
// If we ever end up using this we'll need to update to the most recent API. v3 of the API (which we were using for this)
|
||||
// is being shut down. It's not currently being used so I'm just going to comment it out for now.
|
||||
//m_hHTTPRequestHandleTwitchTv = steamapicontext->SteamHTTP()->CreateHTTPRequest( k_EHTTPMethodGET, CFmtStr( "http://api.twitch.tv/api/steam/%llu", m_pLoadingAccount->m_uiSteamID ) );
|
||||
//m_hHTTPRequestHandleTwitchTv = steamapicontext->SteamHTTP()->CreateHTTPRequest( k_EHTTPMethodGET, CFmtStr( "https://api.twitch.tv/api/steam/%llu", m_pLoadingAccount->m_uiSteamID ) );
|
||||
//steamapicontext->SteamHTTP()->SetHTTPRequestHeaderValue( m_hHTTPRequestHandleTwitchTv, "Accept", cl_streams_request_accept.GetString() );
|
||||
DevMsg( "Requesting twitch.tv account link...\n" );
|
||||
|
||||
|
|
|
@ -366,7 +366,7 @@ void CArmoryPanel::OnCommand( const char *command )
|
|||
ELanguage iLang = PchLanguageToELanguage( uilanguage );
|
||||
|
||||
char szURL[512];
|
||||
Q_snprintf( szURL, sizeof(szURL), "http://wiki.teamfortress.com/scripts/itemredirect.php?id=%d&lang=%s", m_SelectedItem.GetItemDefIndex(), GetLanguageICUName( iLang ) );
|
||||
Q_snprintf( szURL, sizeof(szURL), "https://wiki.teamfortress.com/scripts/itemredirect.php?id=%d&lang=%s", m_SelectedItem.GetItemDefIndex(), GetLanguageICUName( iLang ) );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( szURL );
|
||||
|
||||
C_CTF_GameStats.Event_Catalog( IE_ARMORY_BROWSE_WIKI, NULL, &m_SelectedItem );
|
||||
|
|
|
@ -1629,7 +1629,7 @@ private:
|
|||
{
|
||||
if ( steamapicontext && steamapicontext->SteamFriends() )
|
||||
{
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "http://www.teamfortress.com/saxxyawards/winners.php" );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "https://www.teamfortress.com/saxxyawards/winners.php" );
|
||||
}
|
||||
MarkForDeletion();
|
||||
}
|
||||
|
|
|
@ -276,7 +276,7 @@ void CItemAdPanel::OnCommand( const char *command )
|
|||
g_pVGuiLocalize->ConvertUnicodeToANSI( g_pVGuiLocalize->Find ( pItemDef->GetItemBaseName() ) , pszItemName, sizeof(pszItemName) );
|
||||
|
||||
char szURL[512];
|
||||
V_snprintf( szURL, sizeof(szURL), "http://%ssteamcommunity.com/market/listings/%d/%s", pszPrefix, engine->GetAppID(), pszItemName );
|
||||
V_snprintf( szURL, sizeof(szURL), "https://%ssteamcommunity.com/market/listings/%d/%s", pszPrefix, engine->GetAppID(), pszItemName );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( szURL );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -768,7 +768,7 @@ void CTFStorePreviewItemPanel2::OnCommand( const char *command )
|
|||
ELanguage iLang = PchLanguageToELanguage( uilanguage );
|
||||
|
||||
char szURL[512];
|
||||
Q_snprintf( szURL, sizeof(szURL), "http://wiki.teamfortress.com/scripts/itemredirect.php?id=%d&lang=%s", pItem->GetItemDefIndex(), GetLanguageICUName( iLang ) );
|
||||
Q_snprintf( szURL, sizeof(szURL), "https://wiki.teamfortress.com/scripts/itemredirect.php?id=%d&lang=%s", pItem->GetItemDefIndex(), GetLanguageICUName( iLang ) );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( szURL );
|
||||
|
||||
C_CTF_GameStats.Event_Catalog( IE_ARMORY_BROWSE_WIKI, NULL, pItem );
|
||||
|
|
|
@ -301,7 +301,7 @@ void CTFItemInspectionPanel::OnCommand( const char *command )
|
|||
CEconItemLocalizedMarketNameGenerator generator( GLocalizationProvider(), m_pItemViewData );
|
||||
|
||||
char szURL[512];
|
||||
V_snprintf( szURL, sizeof(szURL), "http://%ssteamcommunity.com/market/listings/%d/%s", pszPrefix, engine->GetAppID(), CStrAutoEncode( generator.GetFullName() ).ToString() );
|
||||
V_snprintf( szURL, sizeof(szURL), "https://%ssteamcommunity.com/market/listings/%d/%s", pszPrefix, engine->GetAppID(), CStrAutoEncode( generator.GetFullName() ).ToString() );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( szURL );
|
||||
}
|
||||
|
||||
|
|
|
@ -278,7 +278,7 @@ void CWarLandingPanel::OnCommand( const char *pCommand )
|
|||
}
|
||||
else if ( FStrEq( "view_update_comic", pCommand ) )
|
||||
{
|
||||
const char* pszComicURL = "http://www.teamfortress.com/theshowdown/";
|
||||
const char* pszComicURL = "https://www.teamfortress.com/theshowdown/";
|
||||
|
||||
if ( steamapicontext && steamapicontext->SteamFriends() && steamapicontext->SteamUtils() && steamapicontext->SteamUtils()->IsOverlayEnabled() )
|
||||
{
|
||||
|
|
|
@ -206,10 +206,10 @@ void CPublishedFiles::ViewPublishedFile( uint64 nPublishedFileID )
|
|||
switch ( universe )
|
||||
{
|
||||
case k_EUniversePublic:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "http://steamcommunity.com/sharedfiles/filedetails/?id=%llu", nPublishedFileID ) );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "https://steamcommunity.com/sharedfiles/filedetails/?id=%llu", nPublishedFileID ) );
|
||||
break;
|
||||
case k_EUniverseBeta:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "http://beta.steamcommunity.com/sharedfiles/filedetails/?id=%llu", nPublishedFileID ) );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "https://beta.steamcommunity.com/sharedfiles/filedetails/?id=%llu", nPublishedFileID ) );
|
||||
break;
|
||||
case k_EUniverseDev:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( COMMUNITY_DEV_HOST "sharedfiles/filedetails/?id=%llu", nPublishedFileID ) );
|
||||
|
@ -1163,7 +1163,7 @@ public:
|
|||
}
|
||||
else if ( FStrEq( pCommand, "learn_more" ) )
|
||||
{
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "http://www.teamfortress.com/contribute/" );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( "https://www.teamfortress.com/contribute/" );
|
||||
}
|
||||
else if ( FStrEq( pCommand, "view_files" ) )
|
||||
{
|
||||
|
@ -1172,10 +1172,10 @@ public:
|
|||
switch ( universe )
|
||||
{
|
||||
case k_EUniversePublic:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "http://steamcommunity.com/profiles/%llu/mysharedfiles/", ulSteamID ) );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "https://steamcommunity.com/profiles/%llu/mysharedfiles/", ulSteamID ) );
|
||||
break;
|
||||
case k_EUniverseBeta:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "http://beta.steamcommunity.com/profiles/%llu/mysharedfiles/", ulSteamID ) );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "https://beta.steamcommunity.com/profiles/%llu/mysharedfiles/", ulSteamID ) );
|
||||
break;
|
||||
case k_EUniverseDev:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( COMMUNITY_DEV_HOST "profiles/%llu/mysharedfiles/", ulSteamID ) );
|
||||
|
@ -1188,10 +1188,10 @@ public:
|
|||
switch ( universe )
|
||||
{
|
||||
case k_EUniversePublic:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "http://steamcommunity.com/workshop/workshoplegalagreement/?appid=%d", engine->GetAppID() ) );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "https://steamcommunity.com/workshop/workshoplegalagreement/?appid=%d", engine->GetAppID() ) );
|
||||
break;
|
||||
case k_EUniverseBeta:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "http://beta.steamcommunity.com/workshop/workshoplegalagreement/?appid=%d", engine->GetAppID() ) );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "https://beta.steamcommunity.com/workshop/workshoplegalagreement/?appid=%d", engine->GetAppID() ) );
|
||||
break;
|
||||
case k_EUniverseDev:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( COMMUNITY_DEV_HOST "workshop/workshoplegalagreement/?appid=%d", engine->GetAppID() ) );
|
||||
|
@ -1204,10 +1204,10 @@ public:
|
|||
switch ( universe )
|
||||
{
|
||||
case k_EUniversePublic:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "http://steamcommunity.com/workshop/browse?appid=%d", engine->GetAppID() ) );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "https://steamcommunity.com/workshop/browse?appid=%d", engine->GetAppID() ) );
|
||||
break;
|
||||
case k_EUniverseBeta:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "http://beta.steamcommunity.com/workshop/browse?appid=%d", engine->GetAppID() ) );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "https://beta.steamcommunity.com/workshop/browse?appid=%d", engine->GetAppID() ) );
|
||||
break;
|
||||
case k_EUniverseDev:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( COMMUNITY_DEV_HOST "workshop/browse?appid=%d", engine->GetAppID() ) );
|
||||
|
@ -1461,10 +1461,10 @@ protected:
|
|||
switch ( universe )
|
||||
{
|
||||
case k_EUniversePublic:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "http://steamcommunity.com/sharedfiles/filedetails/?id=%llu", nPublishedFileID ) );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "https://steamcommunity.com/sharedfiles/filedetails/?id=%llu", nPublishedFileID ) );
|
||||
break;
|
||||
case k_EUniverseBeta:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "http://beta.steamcommunity.com/sharedfiles/filedetails/?id=%llu", nPublishedFileID ) );
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( "https://beta.steamcommunity.com/sharedfiles/filedetails/?id=%llu", nPublishedFileID ) );
|
||||
break;
|
||||
case k_EUniverseDev:
|
||||
steamapicontext->SteamFriends()->ActivateGameOverlayToWebPage( CFmtStrMax( COMMUNITY_DEV_HOST "sharedfiles/filedetails/?id=%llu", nPublishedFileID ) );
|
||||
|
|
|
@ -253,11 +253,11 @@ private:
|
|||
|
||||
virtual JobStatus_t DoExecute()
|
||||
{
|
||||
HTTPRequestHandle hRequest = GetISteamHTTP()->CreateHTTPRequest( k_EHTTPMethodGET, "http://gdata.youtube.com/feeds/api/users/default" );
|
||||
HTTPRequestHandle hRequest = GetISteamHTTP()->CreateHTTPRequest( k_EHTTPMethodGET, "https://gdata.youtube.com/feeds/api/users/default" );
|
||||
GetISteamHTTP()->SetHTTPRequestNetworkActivityTimeout( hRequest, 30 );
|
||||
GetISteamHTTP()->SetHTTPRequestHeaderValue( hRequest, "Authorization", CFmtStr1024( "GoogleLogin auth=%s", gYouTube.GetAuthToken() ) );
|
||||
|
||||
DoRequest( hRequest, "http://gdata.youtube.com/feeds/api/users/default" );
|
||||
DoRequest( hRequest, "https://gdata.youtube.com/feeds/api/users/default" );
|
||||
|
||||
return JOB_OK;
|
||||
}
|
||||
|
@ -440,7 +440,7 @@ private:
|
|||
{
|
||||
m_bAllowRequestFailure = true;
|
||||
|
||||
HTTPRequestHandle hRequest = GetISteamHTTP()->CreateHTTPRequest( k_EHTTPMethodPUT, "http://uploads.gdata.youtube.com/feeds/api/users/default/uploads" );
|
||||
HTTPRequestHandle hRequest = GetISteamHTTP()->CreateHTTPRequest( k_EHTTPMethodPUT, "https://uploads.gdata.youtube.com/feeds/api/users/default/uploads" );
|
||||
GetISteamHTTP()->SetHTTPRequestNetworkActivityTimeout( hRequest, 30 );
|
||||
|
||||
const char *pFileName = Q_UnqualifiedFileName( m_strFilePath.Get() );
|
||||
|
@ -520,7 +520,7 @@ private:
|
|||
GetISteamHTTP()->SetHTTPRequestRawPostBody( hRequest, "multipart/form-data;boundary=-x", (uint8 *)postDataRaw.Base(), postDataRaw.TellPut() );
|
||||
|
||||
// BUGBUG: use SendHTTPRequestAndStreamResponse
|
||||
DoRequest( hRequest, "http://uploads.gdata.youtube.com/feeds/api/users/default/uploads" );
|
||||
DoRequest( hRequest, "https://uploads.gdata.youtube.com/feeds/api/users/default/uploads" );
|
||||
}
|
||||
|
||||
return JOB_OK;
|
||||
|
@ -823,7 +823,7 @@ bool CYouTubeSystem::GetProfileURL( CUtlString &strProfileURL ) const
|
|||
{
|
||||
if ( m_eLoginStatus == kYouTubeLogin_LoggedIn )
|
||||
{
|
||||
strProfileURL = CFmtStr1024( "http://www.youtube.com/profile?user=%s", m_strYouTubeUserName.Get() );
|
||||
strProfileURL = CFmtStr1024( "https://www.youtube.com/profile?user=%s", m_strYouTubeUserName.Get() );
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -569,7 +569,7 @@ public:
|
|||
m_sSignature = msg.Body().signature();
|
||||
|
||||
// !TEST!
|
||||
//const char *szURL = "http://cdn.beta.steampowered.com/apps/440/scripts/items/items_game.b8b7a85b4dd98b139957004b86ec0bc070a59d18.txt";
|
||||
//const char *szURL = "https://cdn.beta.steampowered.com/apps/440/scripts/items/items_game.b8b7a85b4dd98b139957004b86ec0bc070a59d18.txt";
|
||||
if ( msg.Body().has_items_game() )
|
||||
{
|
||||
bool bDidInit = ItemSystem()->GetItemSchema()->MaybeInitFromBuffer( new DelayedSchemaData_GCDirectData( msg.Body().items_game() ) );
|
||||
|
|
Loading…
Reference in a new issue