@@ -420,8 +420,8 @@ |
||
| 420 | 420 | |
| 421 | 421 | private function certificateAsPem($cert) { |
| 422 | 422 | return "-----BEGIN CERTIFICATE-----\n" |
| 423 | - . chunk_split(base64_encode($cert['certificate_der'])) |
|
| 424 | - . '-----END CERTIFICATE-----'; |
|
| 423 | + . chunk_split(base64_encode($cert['certificate_der'])) |
|
| 424 | + . '-----END CERTIFICATE-----'; |
|
| 425 | 425 | } |
| 426 | 426 | } |
| 427 | 427 | |
@@ -766,31 +766,31 @@ |
||
| 766 | 766 | |
| 767 | 767 | case '/': |
| 768 | 768 | if ('<' == $sToken) { |
| 769 | - $sToken .= $char; |
|
| 770 | - $bEndTag = true; |
|
| 771 | - } else { |
|
| 772 | - $content .= $char; |
|
| 773 | - } |
|
| 769 | + $sToken .= $char; |
|
| 770 | + $bEndTag = true; |
|
| 771 | + } else { |
|
| 772 | + $content .= $char; |
|
| 773 | + } |
|
| 774 | 774 | |
| 775 | - break; |
|
| 775 | + break; |
|
| 776 | 776 | |
| 777 | 777 | case '>': |
| 778 | 778 | if ($bEndTag) { |
| 779 | - $sToken .= $char; |
|
| 780 | - if (preg_match('/\<\/\s*style\s*\>/i', $sToken, $aMatch)) { |
|
| 781 | - $newpos = $i + 1; |
|
| 782 | - $bSucces = true; |
|
| 779 | + $sToken .= $char; |
|
| 780 | + if (preg_match('/\<\/\s*style\s*\>/i', $sToken, $aMatch)) { |
|
| 781 | + $newpos = $i + 1; |
|
| 782 | + $bSucces = true; |
|
| 783 | 783 | |
| 784 | - break 2; |
|
| 785 | - } |
|
| 786 | - $content .= $sToken; |
|
| 784 | + break 2; |
|
| 785 | + } |
|
| 786 | + $content .= $sToken; |
|
| 787 | 787 | |
| 788 | - $bEndTag = false; |
|
| 789 | - } else { |
|
| 790 | - $content .= $char; |
|
| 791 | - } |
|
| 788 | + $bEndTag = false; |
|
| 789 | + } else { |
|
| 790 | + $content .= $char; |
|
| 791 | + } |
|
| 792 | 792 | |
| 793 | - break; |
|
| 793 | + break; |
|
| 794 | 794 | |
| 795 | 795 | case '!': |
| 796 | 796 | if ('<' == $sToken) { |
@@ -717,14 +717,14 @@ |
||
| 717 | 717 | $this->userstores[$name] = $entryid; |
| 718 | 718 | } catch (MAPIException $e) { |
| 719 | 719 | error_log('Failed to open store. ' . $this->session_info['username'] . |
| 720 | - ' requested ' . bin2hex($entryid) . ($name ? " ({$name})" : '')); |
|
| 720 | + ' requested ' . bin2hex($entryid) . ($name ? " ({$name})" : '')); |
|
| 721 | 721 | |
| 722 | 722 | return $e->getCode(); |
| 723 | 723 | } catch (Exception $e) { |
| 724 | 724 | // mapi_openmsgstore seems to throw another exception than MAPIException |
| 725 | 725 | // sometimes, so we add a safety net. |
| 726 | 726 | error_log('Failed to open store. ' . $this->session_info['username'] . |
| 727 | - ' requested ' . bin2hex($entryid) . ($name ? " ({$name})" : '')); |
|
| 727 | + ' requested ' . bin2hex($entryid) . ($name ? " ({$name})" : '')); |
|
| 728 | 728 | |
| 729 | 729 | return $e->getCode(); |
| 730 | 730 | } |
@@ -657,7 +657,7 @@ |
||
| 657 | 657 | /* PersistElementType Values ElementIDs for persist data of PR_IPM_OL2007_ENTRYIDS / PR_ADDITIONAL_REN_ENTRYIDS_EX */ |
| 658 | 658 | define('ELEMENT_SENTINEL', 0x0000); // 0 bytes Indicates that the PersistElement structure is the last one contained in the DataElements field of the PersistData structure. |
| 659 | 659 | define('RSF_ELID_ENTRYID', 0x0001); // variable Indicates that the ElementData field contains the entry ID of the special folder |
| 660 | - // that is of the type indicated by the value of the PersistID field of the PersistData structure. |
|
| 660 | + // that is of the type indicated by the value of the PersistID field of the PersistData structure. |
|
| 661 | 661 | define('RSF_ELID_HEADER', 0x0002); // 4 bytes Indicates that the ElementData field contains a 4-byte header value equal to 0x00000000. |
| 662 | 662 | |
| 663 | 663 | define('STGM_DIRECT', 0x00000000); |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | - // First include all generally necessary classes |
|
| 9 | + // First include all generally necessary classes |
|
| 10 | 10 | require_once 'server/includes/bootstrap.php'; |
| 11 | 11 | |
| 12 | 12 | // Following classes are needed for grommunio.php |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | - /** |
|
| 4 | - * Utility functions. |
|
| 5 | - */ |
|
| 6 | - require_once BASE_PATH . 'server/includes/exceptions/class.JSONException.php'; |
|
| 3 | + /** |
|
| 4 | + * Utility functions. |
|
| 5 | + */ |
|
| 6 | + require_once BASE_PATH . 'server/includes/exceptions/class.JSONException.php'; |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * Function which reads the data stream. This data is send by the WebClient. |