'../' is no good for us.
This commit is contained in:
@@ -12,8 +12,7 @@ $Source$
|
|||||||
a subdirectory of phpMyAdmin ('docSQL' proposed) OR upload each
|
a subdirectory of phpMyAdmin ('docSQL' proposed) OR upload each
|
||||||
file on its own via File Upload (if $is_upload is true).
|
file on its own via File Upload (if $is_upload is true).
|
||||||
Filenames not matching the converter will no more printed out to
|
Filenames not matching the converter will no more printed out to
|
||||||
maintain security.
|
maintain security. Permits input of '../'.
|
||||||
|
|
||||||
* transformation_wrapper.php3 - Remove $err_url, because if a query
|
* transformation_wrapper.php3 - Remove $err_url, because if a query
|
||||||
fails here, the user won't get to see the error string anyways.
|
fails here, the user won't get to see the error string anyways.
|
||||||
Can happen if you want to display a blob without having an index
|
Can happen if you want to display a blob without having an index
|
||||||
|
@@ -206,7 +206,7 @@ if (isset($do) && $do == 'import') {
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
// echo '<h1>Starting Import</h1>';
|
// echo '<h1>Starting Import</h1>';
|
||||||
$docpath = $DOCUMENT_ROOT . dirname($PHP_SELF) . '/' . $docpath;
|
$docpath = $DOCUMENT_ROOT . dirname($PHP_SELF) . '/' . str_replace('../', './', $docpath);
|
||||||
if (substr($docpath, strlen($docpath) - 2, 1) != '/') {
|
if (substr($docpath, strlen($docpath) - 2, 1) != '/') {
|
||||||
$docpath = $docpath . '/';
|
$docpath = $docpath . '/';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user