File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,8 @@ public function update_repo( $p_repo ) {
129129 $ f_cgit_project = gpc_get_string ( 'cgit_project ' );
130130 $ f_master_branch = gpc_get_string ( 'master_branch ' );
131131
132+ $ this ->validate_branch_list ( $ f_master_branch );
133+
132134 $ p_repo ->info ['cgit_root ' ] = $ f_cgit_root ;
133135 $ p_repo ->info ['cgit_project ' ] = $ f_cgit_project ;
134136 $ p_repo ->info ['master_branch ' ] = $ f_master_branch ;
Original file line number Diff line number Diff line change @@ -119,6 +119,8 @@ public function update_repo( $p_repo ) {
119119 $ f_gitphp_project = gpc_get_string ( 'gitphp_project ' );
120120 $ f_master_branch = gpc_get_string ( 'master_branch ' );
121121
122+ $ this ->validate_branch_list ( $ f_master_branch );
123+
122124 $ p_repo ->info ['gitphp_root ' ] = $ f_gitphp_root ;
123125 $ p_repo ->info ['gitphp_project ' ] = $ f_gitphp_project ;
124126 $ p_repo ->info ['master_branch ' ] = $ f_master_branch ;
Original file line number Diff line number Diff line change @@ -159,6 +159,8 @@ public function update_repo( $p_repo ) {
159159 $ f_gitweb_pass = gpc_get_string ( 'gitweb_pass ' );
160160 $ f_master_branch = gpc_get_string ( 'master_branch ' );
161161
162+ $ this ->validate_branch_list ( $ f_master_branch );
163+
162164 $ p_repo ->info ['gitweb_root ' ] = $ f_gitweb_root ;
163165 $ p_repo ->info ['gitweb_project ' ] = $ f_gitweb_project ;
164166 $ p_repo ->info ['gitweb_user ' ] = $ f_gitweb_user ;
You can’t perform that action at this time.
0 commit comments