[Gmod-help] Re: [Gmod-gbrowse] broken "Position" link in details page
Don Gilbert
gilbertd at cricket.bio.indiana.edu
Thu Feb 26 22:11:34 EST 2009
The bug is in this line wrap code in gbrowse_details (versions 1.6x .. 2.0),
which isn't safe for embedded html code. You could probably do better just commenting
out the line '$obj =~ s/.../$1 /g;'
http://gmod.cvs.sourceforge.net/viewvc/gmod/Generic-Genome-Browser/cgi-bin/gb2/gbrowse_details?view=markup
413 sub print_multiple {
453 # wrap way long lines. Note : ading '" prevent this regexp from wrapping html tags
454 $obj =~ s/([^<>\s\'\"\/;&]{60})/$1 /g;
>> suggested replacement, but no I haven't tested it.
# wrap long lines but avoid wrapping inside html code:
$obj = join "", map{ s/([^\s\'\"\/;&]{60})/$1 /g unless(/\</) } split /(<[^>]*>)/, $obj;
-- Don
More information about the Gmod-help
mailing list