Skip to content
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

installing error during installation #356

Open
finnditdipanjan opened this issue May 27, 2024 · 1 comment
Open

installing error during installation #356

finnditdipanjan opened this issue May 27, 2024 · 1 comment

Comments

@finnditdipanjan
Copy link

finnditdipanjan commented May 27, 2024

When install icehrm in my own hosting it give me error :- The value provided for APP_PASSWORD is not valid.

error

@AppLEaDaY
Copy link

AppLEaDaY commented Jun 21, 2024

By inspecting the code I found it depends on what characters are contained in the chosen password. Please have a look in app/install/submit.php. A piece of that code follows...

function clean_input($input, $html = false) {
    $input = str_replace([';', '#', "'", '"'], '', $input);
    return htmlentities($input, ENT_QUOTES, 'UTF-8');
}

$inputList = [
   'APP_HOST',
   'APP_USERNAME',
   'APP_PASSWORD',
   'APP_DB',
   'LOG',
   'BASE_URL',
];

foreach ($inputList as $key) {
    if (empty($_REQUEST[$key])) {
        $_REQUEST[$key] = '';
    }
    $cleaned = clean_input($_REQUEST[$key]);
    if ($cleaned !== $_REQUEST[$key]) {
        $ret["status"] = "ERROR";
        $ret["msg"] = "The value provided for $key is not valid.";
        echo json_encode($ret);
        exit();
    }
}

Andrea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants