MantisBT Plugin to prevent anonymous users from posting URLs in public notes.
- Copy SafeAnon folder into plugins folder.
- Open Mantis with browser.
- Log in as administrator.
- Go to Manage -> Manage Plugins.
- Find SafeAnon in the list.
- Click Install.
Optional:
The event EVENT_BUGNOTE_DATA
does not currently pass whether the note in question is public or private. If you wish to allow private notes to bypass this plugin, please make the following change to your MantisBT installation:
core/bugnote_api.php; Line 262
- $t_bugnote_text = event_signal( 'EVENT_BUGNOTE_DATA', $p_bugnote_text, $c_bug_id );
+ $t_bugnote_text = event_signal( 'EVENT_BUGNOTE_DATA', array( $p_bugnote_text, $p_private ), $c_bug_id );
Please be aware that this may break other plugins that use the EVENT_BUGNOTE_DATA
signal. You should check your plugins' hook lists to make any necessary changes. Any functions that are called by the signal should include a new $p_private
parameter between $p_bugnote_text
and $c_bug_id
.
- MantisBT 1.2.x and higher - Unknown
- MantisBT 2.0 and higher - Supported