Changeset 926

Show
Ignore:
Timestamp:
12/15/06 03:08:21 (2 years ago)
Author:
bchoate
Message:

Strip any newline, etc., data from redirect links. BugId: 44210

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/lib/MT/App.pm

    r717 r926  
    12701270    my $app = shift; 
    12711271    my($url, %options) = @_; 
     1272    $url =~ s/[\r\n].*$//s; 
    12721273    $app->{redirect_use_meta} = $options{UseMeta}; 
    12731274    unless ($url =~ m!^https?://!i) { 
  • branches/wheeljack/lib/MT/App/Comments.pm

    r752 r926  
    353353            $comment_link = $entry->permalink; 
    354354        } else { 
     355            $static =~ s/[\r\n].*$//s; 
    355356            $comment_link = $static . '#' . $comment->id; 
    356357        }