! MouseHole 1.2 is out
Daniel Sheppard
daniels at pronto.com.au
Thu Sep 29 01:59:23 EDT 2005
There's a bug with the paths. In the scripted_mounts method:
path_parts = request.path_info.split( '/' ).reject { |x|
x.to_s.strip.size == 0 }
mount = path_parts.shift.to_s.strip
each_fresh_script do |path, script|
if mount =~ /^\/*#{ script.mount }$/
script.do_mount( path_parts.join( '/' ), request, response
)
no_cache response
return
end
end
Why is the reject { |x| x.to_s.strip.size == 0 } there? It has the
consequence that any double forward slash is stripped from the path (so
that urls cannot be included in the url for a mount). I take it that
it's there to filter out localhost:37004//cmd/ ? Would the following
suffice:
path_parts = request.path_info.split( '/' )
begin
mount = path_parts.shift
end until mount.to_s.strip.size > 0 || path_parts.empty?
-----Original Message-----
From: mousehole-scripters-bounces at rubyforge.org
[mailto:mousehole-scripters-bounces at rubyforge.org] On Behalf Of why the
lucky stiff
Sent: Thursday, 29 September 2005 7:19 AM
To: Ben Schumacher; mousehole-scripters at rubyforge.org
Subject: Re: ! MouseHole 1.2 is out
Ben Schumacher wrote:
>Q: (cause i'm too lazy to figure this out myself) Does this Windows
>installer version default to Tidy or HTree?
>
>bs. (aka rynok)
>
>
Tidy. Sorry, I should put that in the --help.
_why
_______________________________________________
Mousehole-scripters mailing list
Mousehole-scripters at rubyforge.org
http://rubyforge.org/mailman/listinfo/mousehole-scripters
#####################################################################################
This email has been scanned by MailMarshal, an email content filter.
#####################################################################################
More information about the Mousehole-scripters
mailing list