Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
z-push
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Björn Fischer
z-push
Commits
5b94272c
Commit
5b94272c
authored
Sep 08, 2016
by
Sebastian Kummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-1025 Also filter https urls.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
60bc3a3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mapiprovider.php
src/backend/kopano/mapiprovider.php
+1
-1
No files found.
src/backend/kopano/mapiprovider.php
View file @
5b94272c
...
@@ -2547,7 +2547,7 @@ class MAPIProvider {
...
@@ -2547,7 +2547,7 @@ class MAPIProvider {
ZLog
::
Write
(
LOGLEVEL_DEBUG
,
"MAPIProvider->setMessageBody(): truncated plain-text body requested, stripping all links and images"
);
ZLog
::
Write
(
LOGLEVEL_DEBUG
,
"MAPIProvider->setMessageBody(): truncated plain-text body requested, stripping all links and images"
);
// Get more data because of the filtering it's most probably going down in size. It's going to be truncated to the correct size below.
// Get more data because of the filtering it's most probably going down in size. It's going to be truncated to the correct size below.
$plainbody
=
stream_get_contents
(
$message
->
asbody
->
data
,
$bpo
->
GetTruncationSize
()
*
3
);
$plainbody
=
stream_get_contents
(
$message
->
asbody
->
data
,
$bpo
->
GetTruncationSize
()
*
3
);
$message
->
asbody
->
data
=
StringStreamWrapper
::
Open
(
preg_replace
(
'/<http:\/\/.*?>/i'
,
''
,
$plainbody
));
$message
->
asbody
->
data
=
StringStreamWrapper
::
Open
(
preg_replace
(
'/<http
(s){0,1}
:\/\/.*?>/i'
,
''
,
$plainbody
));
}
}
// truncate data stream
// truncate data stream
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment