Skip to content

Commit

Permalink
Item10905: Except mailto from legacy [[
Browse files Browse the repository at this point in the history
The legacy [[URL anchor link text]] format for mailto links
breaks embedded spaces in subject= and body= query strings.

git-svn-id: http://svn.foswiki.org/branches/Release01x01@12032 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Jun 21, 2011
1 parent 30aece0 commit d106c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/Render.pm
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ sub _handleSquareBracketedLink {
# Explicit external [[http://$link]] or [[http://$link][$text]]
# or explicit absolute [[/$link]] or [[/$link][$text]]

if ( !defined($text) && $link =~ /^(\S+)\s+(.*)$/ ) {
if ( !defined($text) && $link =~ /^(\S+)\s+(.*)$/ && $link !~ /^mailto:/ ) {

# Legacy case of '[[URL anchor display text]]' link
# implicit untaint is OK as we are just recycling topic content
Expand Down

0 comments on commit d106c2b

Please sign in to comment.