New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for lfi #652

Merged
merged 1 commit into from Nov 26, 2015
File filter...
Filter file types
Jump to file or symbol
Failed to load files and symbols.
+4 −3
Diff settings

Always

Just for now

Copy path View file
@@ -13,8 +13,9 @@
if (isset ($_GET['act'])&&isset ($_GET['method'])) {
$className = 'zc'.ucfirst ($_GET['act']);
$classFile = $className.'.php';
if (file_exists (DIR_FS_CATALOG.DIR_WS_CLASSES.'ajax/'.$classFile)) {
require (DIR_FS_CATALOG.DIR_WS_CLASSES.'ajax/'.$classFile);
$basePath = DIR_FS_CATALOG.DIR_WS_CLASSES;
if (file_exists (basename(realpath($basePath. 'ajax/' .$classFile)))) {
require basename(realpath($basePath .'ajax/' . $classFile));
$class = new $className ();
if (method_exists ($class, $_GET['method'])) {
$result = call_user_func (array(
@@ -27,4 +28,4 @@
echo 'method error';
}
}
}
}
ProTip! Use n and p to navigate between commits in a pull request.