File tree Expand file tree Collapse file tree 4 files changed +5
-1
lines changed
Expand file tree Collapse file tree 4 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ terms_of_service_url = "https://github.com" ; this can be external or a portal p
1515account_policy_url = "https://github.com" ; this can be external or a portal page created with "content management"
1616allow_die = true ; internal use only
1717enable_verbose_error_log = true ; internal use only
18+ enable_redirect_message = true ; internal use only
1819enable_exception_handler = true ; internal use only
1920enable_error_handler = true ; internal use only
2021
Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ custom_user_mappings_dir = "test/custom_user_mappings"
44[site]
55allow_die = false
66enable_verbose_error_log = false
7+ enable_redirect_message = false
78enable_exception_handler = false
89enable_error_handler = false
Original file line number Diff line number Diff line change 1+ [site]
2+ enable_redirect_message = false
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public static function redirect(?string $dest = null): never
4646 $ dest = htmlspecialchars ($ dest );
4747 header ("Location: $ dest " );
4848 http_response_code (302 );
49- if (php_sapi_name () !== " cli " ) {
49+ if (CONFIG [ " site " ][ " enable_redirect_message " ] ) {
5050 echo "If you're reading this message, then your browser has failed to redirect you " .
5151 "to the proper destination. click <a href=' $ dest'>here</a> to continue. " ;
5252 }
You can’t perform that action at this time.
0 commit comments