diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-19 17:38:25 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2011-02-19 17:38:25 +1100 |
| commit | 73746b7c8da6f27a503abd72c6888870a47dbde3 (patch) | |
| tree | 35dc0cf32558778479d7a0b7d9972f07d4251d2d /inc | |
| parent | 8c8e2486ebfe50739486e1586e4098847695129b (diff) | |
Fixed cite links for mods
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/display.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/display.php b/inc/display.php index 871b2a9d..1ee16c05 100644 --- a/inc/display.php +++ b/inc/display.php @@ -83,8 +83,8 @@ // Fix internal links // Very complicated regex $this->body = preg_replace( - '/<a(([a-zA-Z]+="[^"]+")|[a-zA-Z]+=[a-zA-Z]+|\s)*href="' . preg_quote($config['root'], '/') . '(' . sprintf(preg_quote($config['board_path'], '/'), '\w+') . ')/', - '<a href="?/$3', + '/<a((([a-zA-Z]+="[^"]+")|[a-zA-Z]+=[a-zA-Z]+|\s)*)href="' . preg_quote($config['root'], '/') . '(' . sprintf(preg_quote($config['board_path'], '/'), '\w+') . ')/', + '<a $1href="?/$4', $this->body ); } |
