summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Brill <egore911@gmail.com>2017-02-07 12:29:37 +0100
committerChristoph Brill <egore911@gmail.com>2017-02-07 12:30:07 +0100
commit01ecaf33a867569d7c83840094b7342517c4c2f1 (patch)
tree7404eaebf9037aa5d6998fd1bdca8ae87e1dc993
parent2ff180befb1972400c6e9c74f103dca978e3f1cb (diff)
Open links in new tabs/windows by default
-rw-r--r--details.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/details.php b/details.php
index faf666d..9b77c1d 100644
--- a/details.php
+++ b/details.php
@@ -25,7 +25,7 @@ foreach ($lines as $line_num => $line) {
echo '<span class="user_'.$user_clean.'">';
$line = htmlentities($line, ENT_QUOTES);
if ($show_html == 'true') {
- $line = preg_replace($pattern, "\\1<a href=\"\\2\\3\">\\2\\3</a>\\4", $line);
+ $line = preg_replace($pattern, "\\1<a target=\"_blank\" href=\"\\2\\3\">\\2\\3</a>\\4", $line);
}
$user_link = '<a style="color: inherit;" href="javascript:addUser(\''.$user_clean.'\');"';
if (isset($realname[$user_clean])) {