Commit info for scoop/lib/Scoop:

Modified Files:
	Utility.pm 
Log Message:
Fix for %002 and others in URLs. Slight change suggested by rusty to
check for %0\d+ instead, as other %00 characters also trigger the browser
bug.
Fixes bug #13 from bugz list.  --hulver


Index: Utility.pm
===================================================================
RCS file: /cvs/scoop/scoop/lib/Scoop/Utility.pm,v
retrieving revision 1.30
retrieving revision 1.31
diff -r1.30 -r1.31
850a851,875
> =item * check_url( $url )
> 
> Removes characters from URL's that can trigger browser bugs.
> As of writing, IE has a bug where a %002 in a url will cause
> the status bar to stop displaying the url from that character.
> rusty has said that almost any character matching %0\d+ will
> trigger the bug.
> Changed check to reflect this.
> 
> So http://www.cutekittens.org%002@www.cutepuppies.org/
> 
> Would display as http://www.cutekittens.org in the status bar.
> 
> =cut
> 
> sub check_url {
> 	my $S = shift;
> 	my $url = shift;
> 
> 	warn "check_url : $url\n" if $DEBUG; 
> 	$url =~ s/%0\d+//g;
> 
> 	return $url;
> }
>