diff options
| author | czaks <marcin@6irc.net> | 2013-08-13 14:46:16 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-08-13 14:46:16 -0400 |
| commit | 4f855cf3b30d0b141f3a4c4f4477d7d27069c895 (patch) | |
| tree | a56d18dcbf2ca12034ccfa8943cc3674f3b37f5b /inc/mod | |
| parent | b5bba48edfe26a7bbb23aad3eb8b3c8d163489a3 (diff) | |
| parent | 07b825c6d2abd3312747fafe49c0a1d3011242ae (diff) | |
Merge branch 'master' of https://github.com/savetheinternet/Tinyboard
Conflicts:
inc/config.php
inc/display.php
inc/functions.php
Diffstat (limited to 'inc/mod')
| -rw-r--r-- | inc/mod/config-editor.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/inc/mod/config-editor.php b/inc/mod/config-editor.php index 27740378..3f15ebe5 100644 --- a/inc/mod/config-editor.php +++ b/inc/mod/config-editor.php @@ -115,8 +115,14 @@ function config_vars() { $already_exists = true; } - if (!$already_exists && permission_to_edit_config_var($var['name'])) + if (!$already_exists && permission_to_edit_config_var($var['name'])) { + foreach ($var['comment'] as &$comment) { + $comment = preg_replace_callback( + '/((?:https?:\/\/|ftp:\/\/|irc:\/\/)[^\s<>()"]+?(?:\([^\s<>()"]*?\)[^\s<>()"]*?)*)((?:\s|<|>|"|\.||\]|!|\?|,|,|")*(?:[\s<>()"]|$))/', + 'markup_url', $comment); + } $conf[] = $var; + } } } |
