Skip to content
Snippets Groups Projects
Commit 7d342759 authored by totten's avatar totten
Browse files

CRM-14091 - Change URLs for doc links

----------------------------------------
* CRM-14091:
  http://issues.civicrm.org/jira/browse/CRM-14091
parent 4ab6fe5d
Branches
Tags
No related merge requests found
......@@ -152,7 +152,7 @@ class CRM_Utils_Check_Security {
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 />' .
......@@ -195,8 +195,8 @@ class CRM_Utils_Check_Security {
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));
}
}
......@@ -257,7 +257,7 @@ class CRM_Utils_Check_Security {
$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));
}
}
......@@ -271,4 +271,7 @@ class CRM_Utils_Check_Security {
return $messages;
}
public function createDocUrl($topic) {
return CRM_Utils_System::getWikiBaseURL() . $topic;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment