From e2f95778ce48cf86651e7fe42f27084fb42de938 Mon Sep 17 00:00:00 2001 From: Scott Walters Date: Thu, 8 Sep 2011 14:32:22 -0400 Subject: [PATCH] Two newlines before the URL breaks linking even in the default template where this value is used as the url parameter. The newlines get changed to
's and that stuffed into the param of an href. A URL really should just be a URL. Or a URI. Or one of those things. --- lib/WebGUI/Workflow/Activity/NotifyAboutVersionTag.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Workflow/Activity/NotifyAboutVersionTag.pm b/lib/WebGUI/Workflow/Activity/NotifyAboutVersionTag.pm index 12b500709..eb5a6c15c 100644 --- a/lib/WebGUI/Workflow/Activity/NotifyAboutVersionTag.pm +++ b/lib/WebGUI/Workflow/Activity/NotifyAboutVersionTag.pm @@ -101,7 +101,7 @@ sub execute { if ($versionTag->getAssetCount) { # if there's only one asset in the tag, we might as well give them a direct link to it my $asset = $versionTag->getAssets->[0]; - $urlOfSingleAsset = "\n\n".$self->session->url->getSiteURL().$asset->getUrl("func=view;revision=".$asset->get("revisionDate")); + $urlOfSingleAsset = $self->session->url->getSiteURL().$asset->getUrl("func=view;revision=".$asset->get("revisionDate")); } my $var = { message => $self->get('message'),