mirror of
https://github.com/webmin/webmin.git
synced 2025-08-17 19:06:28 +00:00
Check for a valid file
This commit is contained in:
@ -20,6 +20,7 @@ manual_edata=No new contents entered
|
|||||||
|
|
||||||
list_title=Manage PHP Configuration
|
list_title=Manage PHP Configuration
|
||||||
list_ecannot=You are not allowed to manage this PHP configuration file
|
list_ecannot=You are not allowed to manage this PHP configuration file
|
||||||
|
list_efile=File to edit must be an absolute path
|
||||||
list_return=PHP configuration
|
list_return=PHP configuration
|
||||||
list_format_ini=INI format
|
list_format_ini=INI format
|
||||||
list_format_fpm=FPM format
|
list_format_fpm=FPM format
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
require './phpini-lib.pl';
|
require './phpini-lib.pl';
|
||||||
&ReadParse();
|
&ReadParse();
|
||||||
|
$in{'file'} =~ /^\// || &error($text{'list_efile'});
|
||||||
&can_php_config($in{'file'}) || &error($text{'list_ecannot'});
|
&can_php_config($in{'file'}) || &error($text{'list_ecannot'});
|
||||||
|
|
||||||
# Work out if we can just see one file
|
# Work out if we can just see one file
|
||||||
|
Reference in New Issue
Block a user