summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-07-14 13:24:05 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-07-14 13:24:05 (GMT)
commit6f36dce0cf1eebd26a734b441c0e2412cafe6fc1 (patch)
tree968ab13fc6ccc404c4e223240236018316681ca1 /Modules
parent2fe520d2b0b106ee65e54d037245228269adb43c (diff)
parent9b588b2bdfc93d5cb0fe0c1753971e987addf68a (diff)
downloadCMake-6f36dce0cf1eebd26a734b441c0e2412cafe6fc1.zip
CMake-6f36dce0cf1eebd26a734b441c0e2412cafe6fc1.tar.gz
CMake-6f36dce0cf1eebd26a734b441c0e2412cafe6fc1.tar.bz2
Merge topic 'ExternalData-SecurityFix'
9b588b2b ExternalData: Hide security-sensitive details from output
Diffstat (limited to 'Modules')
-rw-r--r--Modules/ExternalData.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/ExternalData.cmake b/Modules/ExternalData.cmake
index a3f460d..02d2b15 100644
--- a/Modules/ExternalData.cmake
+++ b/Modules/ExternalData.cmake
@@ -971,7 +971,8 @@ function(_ExternalData_download_object name hash algo var_obj)
set(url "${lhs}${algo}${rhs}")
endif()
endif()
- message(STATUS "Fetching \"${url}\"")
+ string(REGEX REPLACE "((https?|ftp)://)([^@]+@)?(.*)" "\\1\\4" secured_url "${url}")
+ message(STATUS "Fetching \"${secured_url}\"")
if(url MATCHES "^ExternalDataCustomScript://([A-Za-z_][A-Za-z0-9_]*)/(.*)$")
_ExternalData_custom_fetch("${CMAKE_MATCH_1}" "${CMAKE_MATCH_2}" "${tmp}" err errMsg)
else()