mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 15:16:12 +00:00
Fix 'ah:' urls for untrusted domains
This commit is contained in:
parent
04ce449901
commit
79c101b4a2
1 changed files with 5 additions and 3 deletions
|
@ -709,10 +709,12 @@ namespace NLGUI
|
||||||
if (present[MY_HTML_A_HREF] && value[MY_HTML_A_HREF])
|
if (present[MY_HTML_A_HREF] && value[MY_HTML_A_HREF])
|
||||||
{
|
{
|
||||||
string suri = value[MY_HTML_A_HREF];
|
string suri = value[MY_HTML_A_HREF];
|
||||||
if(_TrustedDomain && suri.find("ah:") == 0)
|
if(suri.find("ah:") == 0)
|
||||||
{
|
{
|
||||||
// in ah: command we don't respect the uri standard so the HTAnchor_address doesn't work correctly
|
if (_TrustedDomain)
|
||||||
_Link.push_back (suri);
|
_Link.push_back (suri);
|
||||||
|
else
|
||||||
|
_Link.push_back ("");
|
||||||
}
|
}
|
||||||
else if (_TrustedDomain && suri[0] == '#')
|
else if (_TrustedDomain && suri[0] == '#')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue