From 7d342759d01a814d9bc3e9b232f8e0616b32ce59 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Wed, 5 Feb 2014 11:25:32 -0800 Subject: [PATCH] CRM-14091 - Change URLs for doc links ---------------------------------------- * CRM-14091: http://issues.civicrm.org/jira/browse/CRM-14091 --- CRM/Utils/Check/Security.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/CRM/Utils/Check/Security.php b/CRM/Utils/Check/Security.php index 33c909874c..7390063443 100644 --- a/CRM/Utils/Check/Security.php +++ b/CRM/Utils/Check/Security.php @@ -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 CiviCRM debug log should not be downloadable.' . '
' . @@ -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.' . '
' . - 'Read more about this warning'; - $docs_url = 'http://wiki.civicrm.org/confluence/display/CRMDOC/Security/UploadDirNotAccessible'; + 'Read more about this warning'; + $docs_url = $this->createDocUrl('checkUploadsAreNotAccessible'); $messages[] = ts($msg, array(1 => $docs_url)); } } @@ -257,7 +257,7 @@ class CRM_Utils_Check_Security { $msg = 'Directory %2 may be browseable via the web.' . '
' . 'Read more about this warning'; - $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; + } } -- 2.25.1