Skip to content

Commit 7a117b6

Browse files
authored
SA-Core-2023-004: Remove info variables from phpinfo page.
1 parent 838b513 commit 7a117b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/modules/system/system.admin.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2298,7 +2298,7 @@ function system_run_cron() {
22982298
* Menu callback: return information about PHP.
22992299
*/
23002300
function system_php() {
2301-
phpinfo();
2301+
phpinfo(~(INFO_VARIABLES | INFO_ENVIRONMENT));
23022302
backdrop_exit();
23032303
}
23042304

0 commit comments

Comments
 (0)