Skip to content

Commit e2b01af

Browse files
Merge pull request livecode#811 from runrevsebastien/bugfix-12552
[[ Bug 12552 ]] go to url "internet stack path" does not work
2 parents 1b11296 + f09f4b3 commit e2b01af

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

docs/notes/bugfix-12552.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# go to url internet stack path does not work

engine/src/cmdss.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,21 @@ void MCGo::exec_ctxt(MCExecContext &ctxt)
11301130
}
11311131

11321132
cptr = sptr->getchild(card->etype, *t_exp, card->otype);
1133+
1134+
// SN-2014-06-03 [[ Bug 12552]] go to url "internet stack path" does not work
1135+
// If getchild() failed, we try to find a stack from the expression
1136+
if (cptr == NULL)
1137+
{
1138+
sptr = findstack(ctxt, *t_exp, CT_STACK, cptr);
1139+
if (sptr == NULL)
1140+
{
1141+
if (MCresult->isclear())
1142+
MCresult->setvalueref(MCSTR("No such a card"));
1143+
1144+
return ES_NORMAL;
1145+
}
1146+
cptr = (MCCard *)sptr->getchild(CT_THIS, kMCEmptyString, CT_CARD);
1147+
}
11331148
}
11341149
break;
11351150
default:

0 commit comments

Comments
 (0)