diff --git a/main.pas b/main.pas index 0447f2c..ce1abd7 100644 --- a/main.pas +++ b/main.pas @@ -5551,7 +5551,7 @@ var url:=chop(lastDelimiter('/', urlCmd)+1, 0, urlCmd); // we know an urlCmd must begin with ~ // favicon is handled as an urlCmd: we provide HFS icon. - // an non-existent ~file will be detected a hundred lines below. + // a non-existent ~file will be detected a hundred lines below. if ansiStartsStr('~', urlCmd) or (urlCmd = 'favicon.ico') then f:=findFileByURL(url); end; diff --git a/scriptLib.pas b/scriptLib.pas index 1be38c0..873ac9e 100644 --- a/scriptLib.pas +++ b/scriptLib.pas @@ -1228,20 +1228,20 @@ var 'information=64' ); var - i, j, code: integer; + code: integer; decode: TStringDynArray; - s: string; + s, d: string; buttons, icon: boolean; begin decode:=split(' ',par(1)); code:=0; - for i:=0 to length(decode)-1 do - for j:=1 to length(STR2CODE) do - begin - s:=STR2CODE[j]; - if ansiStartsStr(decode[i], s) then - inc(code, strToIntDef(substr(s, 1+pos('=',s)), 0)); - end; + for d in decode do + for s in STR2CODE do + if startsStr(d+'=', s) then + begin + inc(code, strToIntDef(substr(s, 2+d.length), 0)); + Break + end; buttons:=code AND 15 > 0; icon:=code SHR 4 > 0; if not icon and buttons then diff --git a/todo.txt b/todo.txt index 8f89222..362eb14 100644 --- a/todo.txt +++ b/todo.txt @@ -34,7 +34,8 @@ document: single line diff templates (file path) document: {.disconnection reason|if=XXX.} document: %url% document: commands returning white space: add folder, save, set account, exec, mkdir, chdir, delete, rename, move copy, set -document: dir, disk free, filetime, file changed, load tpl, sha256, for line +document: base64, base64decode, dir, disk free, filetime, file changed, load tpl, sha256, for line +document: new event [login] + event to filter logging http://www.rejetto.com/forum/index.php/topic,9784.0.html - wrong browser http://www.rejetto.com/forum/index.php/topic,9710.0.html solution: @@ -52,7 +53,6 @@ document: dir, disk free, filetime, file changed, load tpl, sha256, for line ? in getPage() many %symbols% are translated in a way incompatible with {.section.} ? Windows Script Interfaces ? {.image|src=file|width=x|dst=outfile.} -+ replace /~imgXX with ?mode=icon&id=XX + user input through {.dialog.} + show missing files in VFS http://www.rejetto.com/forum/index.php/topic,8203.new.html * {.cache.} should be able to work on a simple variable