diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-03 16:18:15 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-03 16:47:06 +0100 |
commit | 50d8fa14e0a4300960b3e5648349777e1e3ddecc (patch) | |
tree | 63be02e7a00f46b07de3e7dcf0817b4d20c3f750 /virtual/packages/mantisbt-patches/bug_report.php.diff | |
parent | 7611e4e2ace4355ec4397a675883890927a13c7c (diff) | |
download | Nix-50d8fa14e0a4300960b3e5648349777e1e3ddecc.tar.gz Nix-50d8fa14e0a4300960b3e5648349777e1e3ddecc.tar.zst Nix-50d8fa14e0a4300960b3e5648349777e1e3ddecc.zip |
Add mantisbt
Diffstat (limited to 'virtual/packages/mantisbt-patches/bug_report.php.diff')
-rw-r--r-- | virtual/packages/mantisbt-patches/bug_report.php.diff | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/virtual/packages/mantisbt-patches/bug_report.php.diff b/virtual/packages/mantisbt-patches/bug_report.php.diff new file mode 100644 index 0000000..a520043 --- /dev/null +++ b/virtual/packages/mantisbt-patches/bug_report.php.diff | |||
@@ -0,0 +1,20 @@ | |||
1 | --- a/bug_report.php 2018-02-10 21:29:27.000000000 +0100 | ||
2 | +++ b/bug_report.php 2018-03-03 15:04:19.622499678 +0100 | ||
3 | @@ -149,6 +149,17 @@ | ||
4 | access_ensure_project_level( config_get( 'update_bug_assign_threshold' ) ); | ||
5 | } | ||
6 | |||
7 | +# begin captcha check for anon user | ||
8 | +if ( current_user_is_anonymous() && get_gd_version() > 0 ) { | ||
9 | + $f_captcha = gpc_get_string( 'captcha', '' ); | ||
10 | + $f_captcha = utf8_strtolower( trim( $f_captcha ) ); | ||
11 | + | ||
12 | + $t_securimage = new Securimage(); | ||
13 | + if( $t_securimage->check( $f_captcha ) == false ) { | ||
14 | + trigger_error( ERROR_SIGNUP_NOT_MATCHING_CAPTCHA, ERROR ); | ||
15 | + } | ||
16 | +} | ||
17 | + | ||
18 | # if a profile was selected then let's use that information | ||
19 | if( 0 != $t_bug_data->profile_id ) { | ||
20 | if( profile_is_global( $t_bug_data->profile_id ) ) { | ||