From e268209924bc680689740244441a49dc631442dd Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 9 Aug 2018 10:50:41 -0500 Subject: [PATCH 01/18] Privacy: reverse name/url in Display::url() call for documents --- main/social/personal_data.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/social/personal_data.php b/main/social/personal_data.php index ef3efe7abf..2265674857 100755 --- a/main/social/personal_data.php +++ b/main/social/personal_data.php @@ -264,8 +264,8 @@ foreach ($properties as $key => $value) { foreach ($subValue as $subSubValue) { if ($category === 'DocumentsAdded') { $documentLink = Display::url( - $webCoursePath.$subSubValue->directory.'/document'.$subSubValue->path, - $subSubValue->code_path + $subSubValue->code_path, + $webCoursePath.$subSubValue->directory.'/document'.$subSubValue->path ); $personalDataContent .= '
  • '.$documentLink.'
  • '; } else { From eb413367362ebc7772eeaf8a098b6272e2f49f6d Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 9 Aug 2018 11:02:31 -0500 Subject: [PATCH 02/18] Privacy: Add "no data" entry where needs be --- main/social/personal_data.php | 46 +++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/main/social/personal_data.php b/main/social/personal_data.php index 2265674857..7c79db32ca 100755 --- a/main/social/personal_data.php +++ b/main/social/personal_data.php @@ -251,8 +251,12 @@ foreach ($properties as $key => $value) { switch ($key) { case 'extraFields': $personalDataContent .= '
  • '.$key.':
  • '; break; @@ -261,15 +265,19 @@ foreach ($properties as $key => $value) { $personalDataContent .= '
  • '; $personalDataContent .= ''.get_lang($category).' >
  • '; $personalDataContent .= ''; @@ -285,8 +293,12 @@ foreach ($properties as $key => $value) { case 'groupNames': case 'groups': $personalDataContent .= '
  • '.$key.':
  • '; break; @@ -294,8 +306,12 @@ foreach ($properties as $key => $value) { $personalDataContent .= '
  • '.$key.':