|more useful options|
(yakko: URL handler tweaks) Re: Perl/Tk Chatterbox Clientby yakko (Friar)
|on Feb 04, 2001 at 04:16 UTC||Need Help??|
(Update(1): added handling for "+", and Mandrake info)
After a week in the cooker and a couple of revisions, I think I've got a fix for URL passing... at least for me, when I click on a URL, it may not make it to netscape (shell munged it), or netscape won't like it (has commas in it)... so, here's the stuff:
Near the top, right after the comments, you have the usual use stuff. Insert:
I inserted this around line 90, after use PerlMonksChat;
Next, you'll want to go down to the LaunchBrowser sub, where you have at about line 773:
In between these two lines, I've inserted the magic code to take care of all my weird URL woes:
Now, for Unix folks, there's now a duplicate line in the eval block that handled whitespace:
Get rid of the $url =~ ... line (line 791 in my original), and you'll be set.
Tested for a week on Unix; some testing by dystrophy on win32. It's taken every URL that folks in the CB and I myself have thrown at it. Let me know if something goes weird.
 Alternatively, you may want to toy with the following instead of s///, but I haven't tested this: