From 3dfecc57a739800e03de8d0f6d72700c44f99034 Mon Sep 17 00:00:00 2001 From: GeorgeClark Date: Tue, 21 Jun 2011 16:13:45 +0000 Subject: [PATCH] Item10905: Except mailto from legacy [[ 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/trunk@12029 0b4bb1d4-4e5a-0410-9cc4-b2b747904278 --- core/lib/Foswiki/Render.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/lib/Foswiki/Render.pm b/core/lib/Foswiki/Render.pm index 9e0153c8b9..5206458d05 100644 --- a/core/lib/Foswiki/Render.pm +++ b/core/lib/Foswiki/Render.pm @@ -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