**Public chatroom** - MISP Dev. Developer room. For developers and development related questions. For any non-development (e.g. support) related questions, please go to MISP/Support. General information sharing topics can be discussed in MISP/Sharing. Please contribute your new knowledge to https://github.com/MISP/misp-book/tree/master/faq
Rafiot on main
Explicit slowsearch parameter i… Merge pull request #16 from fuk… (compare)
hashes.csv
? How is that file used? My understanding is that it keeps a mapping between hash of each attribute and the event. What is the reason for that?
private function getOrDef($variable, $default) {
if (Configure::check($variable)) {
return Configure::read($variable);
}
return $default;
}
public function getSetting($setting_name)
{
$setting = $this->Server->getSettingData($setting_name);
if (!empty($setting["redacted"])) {
throw new MethodNotAllowedException(__('This setting is redacted.'));
}
if (Configure::check($setting_name)) {
$setting['value'] = Configure::read($setting_name);
}
return $this->RestResponse->viewData($setting);
}
{
"level": 0,
"description": "The Unix user MISP (php) is running as",
"value": "www-data",
"errorMessage": "",
"test": "testForEmpty",
"type": "string",
"name": "MISP.osuser"
}
{
"level": 0,
"description": "The base url of the application (in the format https:\/\/www.mymispinstance.com or https:\/\/myserver.com\/misp). Several features depend on this setting being correctly set to function.",
"value": "http:\/\/localhost:5000",
"errorMessage": "The currently set baseurl does not match the URL through which you have accessed the page. Disregard this if you are accessing the page via an alternate URL (for example via IP address).",
"test": "testBaseURL",
"type": "string",
"name": "MISP.baseurl"
}
$server = ClassRegistry::init('Server');
$setting = $server->getSettingData($foo);