Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 109667 | Differences between
and this patch

Collapse All | Expand All

(-)a/bin/gnump3d2 (-9 / +1 lines)
Lines 3376-3394 Link Here
3376
    #
3376
    #
3377
    #  Filter out "/../".  Repeatedly.
3377
    #  Filter out "/../".  Repeatedly.
3378
    #
3378
    #
3379
    while ( $path =~ /(.*)\/*\.\.\/(.*)/ )
3379
    while ( $path =~ /(.*)[\\\/]\.\.[\\\/](.*)/ )
3380
    {
3380
    {
3381
        $path = $1 . $2;
3381
        $path = $1 . $2;
3382
    }
3382
    }
3383
3383
3384
    #
3385
    #  Clean up multiple adjacent '/' characters.
3386
    #
3387
    while ( $path =~ /(.*)\/\/(.*)/ )
3388
    {
3389
        $path = $1 . "/" . $2;
3390
    }
3391
3392
    return( $path );
3384
    return( $path );
3393
}
3385
}
3394
3386

Return to bug 109667