Commit 0c293af4 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-907 Fixed typos from comments.

Released under the Affero GNU General Public License (AGPL) version 3.
parent b6941e1f
...@@ -278,7 +278,7 @@ class Ping extends RequestProcessor { ...@@ -278,7 +278,7 @@ class Ping extends RequestProcessor {
private function isClassValid($class, $spa) { private function isClassValid($class, $spa) {
// ZP-907: Outlook might request a ping for such a folder, but we shouldn't answer it in any way // ZP-907: Outlook might request a ping for such a folder, but we shouldn't answer it in any way
if (Request::IsOutlook() && self::$deviceManager->GetFolderTypeFromCacheById($spa->GetFolderId()) == SYNC_FOLDER_TYPE_UNKNOWN) { if (Request::IsOutlook() && self::$deviceManager->GetFolderTypeFromCacheById($spa->GetFolderId()) == SYNC_FOLDER_TYPE_UNKNOWN) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("HandlePing(): ignoring folder id '%s' as it's of type UNKNOWN ", $spa->GetFolderId())); ZLog::Write(LOGLEVEL_DEBUG, sprintf("HandlePing()->isClassValid(): ignoring folder id '%s' as it's of type UNKNOWN ", $spa->GetFolderId()));
return false; return false;
} }
if ($class == $spa->GetContentClass() || if ($class == $spa->GetContentClass() ||
......
...@@ -1169,11 +1169,12 @@ class Utils { ...@@ -1169,11 +1169,12 @@ class Utils {
* Modifies a SyncFolder object, changing the type to SYNC_FOLDER_TYPE_UNKNOWN but saving the original type. * Modifies a SyncFolder object, changing the type to SYNC_FOLDER_TYPE_UNKNOWN but saving the original type.
* It also appends a zero-width UTF-8 (U+200B) character to the name, which serves as marker. * It also appends a zero-width UTF-8 (U+200B) character to the name, which serves as marker.
* *
* @access public
* @param SyncFolder $folder * @param SyncFolder $folder
* @return SyncFolder * @return SyncFolder
*/ */
public static function ChangeFolderToTypeUnknownForKoe($folder) { public static function ChangeFolderToTypeUnknownForKoe($folder) {
// append an zero width UTF-8 space to the name // append a zero width UTF-8 space to the name
$folder->displayname .= hex2bin("e2808b"); $folder->displayname .= hex2bin("e2808b");
$folder->TypeReal = $folder->type; $folder->TypeReal = $folder->type;
$folder->type = SYNC_FOLDER_TYPE_UNKNOWN; $folder->type = SYNC_FOLDER_TYPE_UNKNOWN;
...@@ -1184,6 +1185,7 @@ class Utils { ...@@ -1184,6 +1185,7 @@ class Utils {
/** /**
* Checks if the displayname of the folder contains the zero-width UTF-8 (U+200B) character marker. * Checks if the displayname of the folder contains the zero-width UTF-8 (U+200B) character marker.
* *
* @access public
* @param SyncFolder $folder * @param SyncFolder $folder
* @return boolean * @return boolean
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment