Page MenuHomeFeedback Tracker

htmlLoad fails on uppercase URLs in allowedHTMLLoadURIs
Feedback, NormalPublic

Description

In my case, I tried to load https://raw.githubusercontent.com/ARCOMM/Mission-Testing-Checklist/master/checklist.html with the following CfgCommands config:

class CfgCommands {
	allowedHTMLLoadURIs[] += {
		"*.github.com/ARCOMM/*",
		"*.githubusercontent.com/ARCOMM/*"
	};
};

However that did not work initially, until I changed the allowed URIs to all lowercase:

class CfgCommands {
	allowedHTMLLoadURIs[] += {
		"*.github.com/arcomm/*",
		"*.githubusercontent.com/arcomm/*"
	};
};

at which point it worked.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Linux x64
Category
Scripting
Steps To Reproduce

Run the following code in debug console

private _return = false;
isNil { 
	private _control = (uiNamespace getVariable ["RscDisplayMain", displayNull]) ctrlCreate ["RscHTML", -1]; 
	_control htmlLoad "https://raw.githubusercontent.com/ARCOMM/Mission-Testing-Checklist/master/checklist.html"; 
	_return = ctrlHTMLLoaded _control; 
	ctrlDelete _control; 
}; 
_return

with the following allowedHTMLLoadURIs:

class CfgCommands {
	allowedHTMLLoadURIs[] += {
		"*.github.com/ARCOMM/*",
		"*.githubusercontent.com/ARCOMM/*"
	};
};

Event Timeline

Freddo3000 renamed this task from htmlLoad fails on uppercase URLs to htmlLoad fails on uppercase URLs in allowedHTMLLoadURIs.Nov 17 2021, 9:54 PM

should be fixed in 148520

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Nov 20 2021, 1:13 AM
BIS_fnc_KK changed the task status from New to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.