Skip to content

Commit

Permalink
Item212: inline css style url(http://...) should not be broken into a…
Browse files Browse the repository at this point in the history
…n a href

git-svn-id: http://svn.foswiki.org/trunk@768 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Nov 18, 2008
1 parent ab332c2 commit 40c5661
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/TWiki/Render.pm
Expand Up @@ -1151,9 +1151,9 @@ s/<(\w+(:\w+)?(\s+.*?|\/)?)>/{$TWiki::TranslationToken$1}$TWiki::TranslationToke
$text =~ s/{$TWiki::TranslationToken/</go;
$text =~ s/}$TWiki::TranslationToken/>/go;

# standard URI
# standard URI - don't modify if url(http://as) form
$text =~
s/(^|[-*\s(|])($TWiki::regex{linkProtocolPattern}:([^\s<>"]+[^\s*.,!?;:)<|]))/$1._externalLink( $this,$2)/geo;
s/(^|(?<!url)[-*\s(|])($TWiki::regex{linkProtocolPattern}:([^\s<>"]+[^\s*.,!?;:)<|]))/$1._externalLink( $this,$2)/geo;

# other entities
$text =~ s/&(\w+);/$TWiki::TranslationToken$1;/g; # "&abc;"
Expand Down

0 comments on commit 40c5661

Please sign in to comment.