aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-05-04 20:00:20 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-05-04 20:00:20 +0100
commit76902d4e6e7f718b2bda84538d1a4bfe0922caa8 (patch)
tree38552b8dfd93c686fe303afb83f304ea8162f975
parentf7adb6730bb9595f75cb84e74dce6e85dd022643 (diff)
parentdc059824697449a7a7b5202c146634ebb87c2caa (diff)
Merge commit 'petter/clickable-urls-in-reports' into develop
-rw-r--r--perllib/Page.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/Page.pm b/perllib/Page.pm
index e659c0af5..382f65797 100644
--- a/perllib/Page.pm
+++ b/perllib/Page.pm
@@ -604,6 +604,7 @@ sub display_problem_detail($) {
foreach (split /\n{2,}/, $detail) {
$out .= '<p>' . ent($_) . '</p>';
}
+ $out =~ s%(https?://[^\s]+)%<a href="$1">$1</a>%g;
return $out;
}
@@ -682,6 +683,7 @@ sub display_problem_updates($$) {
}
$out .= '</div>';
}
+ $out =~ s%(https?://[^\s]+)%<a href="$1">$1</a>%g;
return $out;
}