summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2024-06-02 21:50:09 -0400
committerAdam T. Carpenter <atc@53hor.net>2024-06-02 21:50:09 -0400
commit755c6978285eca7faa2891baa42bd920a8fc517f (patch)
treefcf420de0bb32597fcf21cf589254e921b2adddd /index.php
parent5ec43b592ce9678b75d27c138114855e4186e57b (diff)
download53hor-755c6978285eca7faa2891baa42bd920a8fc517f.tar.xz
53hor-755c6978285eca7faa2891baa42bd920a8fc517f.zip
feat: remove _blank targets for accessibility
Users decide whether links open in new tabs!
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 3d0a8b3..5996fca 100644
--- a/index.php
+++ b/index.php
@@ -7,7 +7,7 @@ if (empty($page)) {
} else if (!empty($page) && $page[0] >= '0' && $page[0] <= '9' && is_readable("./posts/$page.php")) {
$script = file_get_contents("./posts/$page.php");
$re = '/<code>([^\(<>\)]*)\(([0-9])\)<\/code>/m';
- $subst = '<a target="_blank" href="https://www.freebsd.org/cgi/man.cgi?query=$1&sektion=$2&format=ascii">$1($2)</a>';
+ $subst = '<a href="https://www.freebsd.org/cgi/man.cgi?query=$1&sektion=$2&format=ascii">$1($2)</a>';
$script = preg_replace($re, $subst, $script);
eval("?>$script<?php");
} else if (!empty($page) && is_readable("./pages/$page.php")) {