Browse Source

Fixed cite links for mods

pull/40/head
Savetheinternet 13 years ago
parent
commit
73746b7c8d
  1. 4
      inc/display.php

4
inc/display.php

@ -83,8 +83,8 @@
// Fix internal links // Fix internal links
// Very complicated regex // Very complicated regex
$this->body = preg_replace( $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((([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 $1href="?/$4',
$this->body $this->body
); );
} }

Loading…
Cancel
Save