if ($log_path = explode($filePathMarker, $log_filename)) {
$url[] = $log_path[1];
$log_url = implode($filePathMarker, $url);
- $docs_url = 'http://wiki.civicrm.org/confluence/display/CRMDOC/Security/LogNotAccessible';
+ $docs_url = $this->createDocUrl('checkLogFileIsNotAccessible');
if ($log = @file_get_contents($log_url)) {
$msg = 'The <a href="%1">CiviCRM debug log</a> should not be downloadable.'
. '<br />' .
if ($file = @file_get_contents($url)) {
$msg = 'Files in the upload directory should not be downloadable.'
. '<br />' .
- '<a href="%2">Read more about this warning</a>';
- $docs_url = 'http://wiki.civicrm.org/confluence/display/CRMDOC/Security/UploadDirNotAccessible';
+ '<a href="%1">Read more about this warning</a>';
+ $docs_url = $this->createDocUrl('checkUploadsAreNotAccessible');
$messages[] = ts($msg, array(1 => $docs_url));
}
}
$msg = 'Directory <a href="%1">%2</a> may be browseable via the web.'
. '<br />' .
'<a href="%3">Read more about this warning</a>';
- $docs_url = 'http://wiki.civicrm.org/confluence/display/CRMDOC/Security/UploadDirNotAccessible';
+ $docs_url = $this->createDocUrl('checkDirectoriesAreNotBrowseable');
$messages[] = ts($msg, array(1 => $log_url, 2 => $path, 3 => $docs_url));
}
}
return $messages;
}
+ public function createDocUrl($topic) {
+ return CRM_Utils_System::getWikiBaseURL() . $topic;
+ }
}