[Gmod-help] Re: [Gmod-gbrowse] broken "Position" link in details page

Lincoln Stein lstein at cshl.edu
Thu Feb 26 22:50:43 EST 2009


Thanks for figuring this out. I'll test your proposed fix.

Lincoln

Lincoln D. Stein
Director, Informatics and Biocomputing Platform
Ontario Institute for Cancer Research
101 College St., Suite 800
Toronto, ON, Canada M5G0A3
416 673-8514
Assistant: Renata Musa <Renata.Musa at oicr.on.ca>


On Thu, Feb 26, 2009 at 8:11 PM, Don Gilbert <
gilbertd at cricket.bio.indiana.edu> wrote:

>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://brie4.cshl.edu/pipermail/gmod-help/attachments/20090226/e8bc2f68/attachment.html>


More information about the Gmod-help mailing list