diff --git a/admin/configvars.php b/admin/configvars.php index 6db0b243899..59087ccee88 100644 --- a/admin/configvars.php +++ b/admin/configvars.php @@ -157,8 +157,8 @@ class configvarrss extends configvar { /// slasharguments unset($options); - $options[0] = "file.php?file=/pic.jpg"; - $options[1] = "file.php/pic.jpg"; + $options[0] = "file.php?file=/1/pic.jpg"; + $options[1] = "file.php/1/pic.jpg"; $operatingsystem['slasharguments'] = new configvar (get_string('configslasharguments', 'admin'), choose_from_menu ($options, 'slasharguments', $config->slasharguments, '', '', '', true) ); diff --git a/admin/health.php b/admin/health.php index d4a50de80dd..e0ef7cab05b 100644 --- a/admin/health.php +++ b/admin/health.php @@ -7,8 +7,7 @@ define('SEVERITY_SIGNIFICANT', 'significant'); define('SEVERITY_CRITICAL', 'critical'); - $resetsesserrorcounter = optional_param('resetsesserrorcounter', 0, PARAM_BOOL); - $solution = optional_param('solution', 0, PARAM_SAFEDIR); //in fact it is class name alhanumeric and _ + $solution = optional_param('solution', 0, PARAM_SAFEDIR); //in fact it is class name alhanumeric and _ require_login(); if (!isadmin()) { @@ -423,7 +422,7 @@ class problem_000010 extends problem_base { $desc .= '
If the following image displays correctly, set your ";
echo "Administration->Configuration->Variables ";
- echo "setting for slasharguments to file.php/pic.jpg: ";
+ echo "setting for slasharguments to file.php/1/pic.jpg: ";
echo "
Otherwise set it to file.php?file=pic.jpg "; + echo "
Otherwise set it to file.php?file=/1/pic.jpg ";
echo "It should display correctly as ";
echo "
If neither equation image displays correctly, please seek "; diff --git a/filter/tex/texdebug.php b/filter/tex/texdebug.php index 6c3973638f4..d6e41ae49f2 100644 --- a/filter/tex/texdebug.php +++ b/filter/tex/texdebug.php @@ -178,9 +178,9 @@ $image = tex2image($texexp,true); echo "
If the following image displays correctly, set your ";
echo "Administration->Configuration->Variables ";
- echo "setting for slasharguments to file.php/pic.jpg: ";
+ echo "setting for slasharguments to file.php/1/pic.jpg: ";
echo "
Otherwise set it to file.php?file=pic.jpg "; + echo "
Otherwise set it to file.php?file=/1/pic.jpg ";
echo "It should display correctly as ";
echo "
If neither equation image displays correctly, please seek "; diff --git a/lib/weblib.php b/lib/weblib.php index f17b775c48d..da51dd0a4ef 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -1096,7 +1096,7 @@ function get_file_argument($scriptname) { if (!strpos($path_info, $scriptname)) { $relativepath = clean_param(rawurldecode($path_info), PARAM_PATH); if ($relativepath === '/testslasharguments') { - echo 'test 1: Slasharguments test passed.'; //indicate ok for health center + echo 'test 1: Slasharguments test passed. Server confguration is compatible with file.php/1/pic.jpg slashargument setting.'; //indicate ok for health center die; } } @@ -1110,7 +1110,7 @@ function get_file_argument($scriptname) { $path_info = strip_querystring($arr[1]); $relativepath = clean_param(rawurldecode($path_info), PARAM_PATH); if ($relativepath === '/testslasharguments') { - echo 'test 2:Slasharguments test passed (compatibility hack).'; //indicate ok for health center + echo 'test 2:Slasharguments test passed (compatibility hack). Server confguration may be compatible with file.php/1/pic.jpg slashargument setting'; //indicate ok for health center die; } }