X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=pkgs%2Fwebapps%2Fmantisbt_2%2Fbugnote_add.php.diff;fp=pkgs%2Fwebapps%2Fmantisbt_2%2Fbugnote_add.php.diff;h=0000000000000000000000000000000000000000;hb=1a64deeb894dc95e2645a75771732c6cc53a79ad;hp=4509f0ad8cc22009009bdf223ff3ef579a97204e;hpb=fa25ffd4583cc362075cd5e1b4130f33306103f0;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/pkgs/webapps/mantisbt_2/bugnote_add.php.diff b/pkgs/webapps/mantisbt_2/bugnote_add.php.diff deleted file mode 100644 index 4509f0a..0000000 --- a/pkgs/webapps/mantisbt_2/bugnote_add.php.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- a/bugnote_add.php 2018-02-10 21:29:27.000000000 +0100 -+++ b/bugnote_add.php 2018-03-03 15:13:12.439919511 +0100 -@@ -44,6 +44,17 @@ - - $t_query = array( 'issue_id' => $f_bug_id ); - -+# begin captcha check for anon user -+if ( current_user_is_anonymous() && get_gd_version() > 0 ) { -+ $f_captcha = gpc_get_string( 'captcha', '' ); -+ $f_captcha = utf8_strtolower( trim( $f_captcha ) ); -+ -+ $t_securimage = new Securimage(); -+ if( $t_securimage->check( $f_captcha ) == false ) { -+ trigger_error( ERROR_SIGNUP_NOT_MATCHING_CAPTCHA, ERROR ); -+ } -+} -+ - if( count( $f_files ) > 0 && is_blank( $f_text ) && helper_duration_to_minutes( $f_duration ) == 0 ) { - $t_payload = array( - 'files' => helper_array_transpose( $f_files )