zarqon
Well-known member
Am I missing something here?
I want to grab the Jarlsberg skills page for insertion into skills.php, via a skills.ash relay override script.
In the CLI it works:
But when I visit skills.php, and it triggers skills.ash, which contains this:
I only get this:
Any idea what's going on here? Nearly identical lines of code for Avatar of Boris (visiting da.php?place=gate1) were previously working. Using r11964.
I want to grab the Jarlsberg skills page for insertion into skills.php, via a skills.ash relay override script.
In the CLI it works:
> ash string page = visit_url("da.php?place=gate2"); page.length();
Returned: 13369
But when I visit skills.php, and it triggers skills.ash, which contains this:
PHP:
case $class[avatar of jarlsberg]:
page = visit_url("da.php?place=gate2");
print("Jarlsberg page length: "+page.length()); // debug
chunk.append(substring(page,index_of(page,"<body>")+6,last_index_of(page,"</body>")));
break;
I only get this:
Jarlsberg page length: 0
Begin index 5 greater than end index -1 (skills.ash, line 39)
Any idea what's going on here? Nearly identical lines of code for Avatar of Boris (visiting da.php?place=gate1) were previously working. Using r11964.