Security: to enter a menu via listen, check that there's a TOMENU
This commit is contained in:
parent
d5c63bf686
commit
95a0b7a90e
1 changed files with 8 additions and 5 deletions
|
@ -258,11 +258,14 @@ default
|
||||||
index = llListFindList(MENU_LIST, ["M:" + msg]);
|
index = llListFindList(MENU_LIST, ["M:" + msg]);
|
||||||
if (index != -1)
|
if (index != -1)
|
||||||
{
|
{
|
||||||
llMessageLinked(LINK_SET, 90051, (string)channel + "|" + llGetSubString(msg, 0, -2) + "|" + (string)SET, MY_SITTER);
|
if (llListFindList(MENU_LIST, ["T:" + msg]) != -1) // security check - TOMENU must exist
|
||||||
menu_page = 0;
|
{
|
||||||
last_menu = current_menu;
|
llMessageLinked(LINK_SET, 90051, (string)channel + "|" + llGetSubString(msg, 0, -2) + "|" + (string)SET, MY_SITTER);
|
||||||
current_menu = index;
|
menu_page = 0;
|
||||||
animation_menu(0);
|
last_menu = current_menu;
|
||||||
|
current_menu = index;
|
||||||
|
animation_menu(0);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
index = llListFindList(llList2List(MENU_LIST, current_menu + 1, 99999), ["B:" + msg]);
|
index = llListFindList(llList2List(MENU_LIST, current_menu + 1, 99999), ["B:" + msg]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue