rejetto forum
Software => HFS ~ HTTP File Server => Bug reports => Topic started by: luckman212 on December 14, 2010, 09:43:04 PM
-
hi, i've got HFS beta #272 running, and have a 'real' folder defined with some links in it. One link in particular does not show up:
http://support.kaspersky.com/viruses/solutions?qid=208280684
when I define this, the link disappears.
if I change it to just
http://support.kaspersky.com/viruses/
then it magically comes back.
so it seems like maybe ? sign or maybe '=' sign is causing problem for HFS to parse the link? not sure. Can it be fixed?
thanks!!
-
@luckman212
There is not a bug with the sign '=' but only with the sign '?'
@rejetto
the problem does'nt exist until build 269, links with ? or = are not working with build 270, 271 or 272. ;)
by creating two links with resources as
www.rejetto.com/forum/
www.rejetto.com/forum/?
only the first is on the list.
I found a way to resolve the bug with the following line which exists effectively since the version 270
if ansiContainsStr(f.resource, '?') then exit; // unicode filename?
Must be replaced by the line updated below
procedure handleItem(f:Tfile);
var
type_, s, url, fingerprint, itemFolder: string;
nonPerc: TStringDynArray;
begin
//We have to make an exception with virtual links
if not f.isLink and ansiContainsStr(f.resource, '?') then exit; // unicode filename? //mod by mars
if f.size > 0 then inc(totalBytes, f.size);
....
@ rejetto : Probably in the following build ? ;)
-
that's it, thank you mars
-
thanks for checking it out guys!! love HFS!
does this mean the fix is coming in 273?
for now i take links with '?' and convert them with bit.ly as a workaround... ;)
-
yes, #273 will have the fix.
i'm just waiting to find a fix for the other (upload) bug.
-
thanks!! I just installed #273 and it does seem to be working ok now!! :)
-
i'm sorry you had to wait so long, that other bug drove me crazy