Skip to content

Disable phpinfo and serverinfo calls (fixes issue #6)#7

Open
rogerpueyo wants to merge 1 commit intoguifi:masterfrom
rogerpueyo:issue_6
Open

Disable phpinfo and serverinfo calls (fixes issue #6)#7
rogerpueyo wants to merge 1 commit intoguifi:masterfrom
rogerpueyo:issue_6

Conversation

@rogerpueyo
Copy link
Contributor

Aquest commit deshabilita les crides phpinfo i serverinfo (https://llistes.guifi.net/sympa/arc/guifi-dev/2017-01/msg00007.html).

Copy link
Member

@miquelmartos miquelmartos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si hem de treure opcions, mes val eliminar-ho del codi enlloc de comentar-ho.
la phpinfo es pot eliminar del tot sense problemes.
la opció serverinfo, fixa't que fa una crida a una funció nostra "getServerInfo();" que esta definida en el mateix fitxer, si no s'utilitza també cal esborrar la funció per deixar net el fitxer.
De totes maneres aquest funció jo la mantindria com a opció però eliminant només la informació sensible, deixant només per exemple informació util:
echo "Server id: $SNPGraphServerId\n";
echo "Root zone: $rootZone\n";
echo "CNML source: $CNMLSource\n";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants