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
b1f21bb3
Commit
b1f21bb3
authored
Nov 30, 2017
by
Sebastian Kummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-1326 Fixed working with empty tags.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
fd4ae4bb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
sync.php
src/lib/request/sync.php
+7
-3
No files found.
src/lib/request/sync.php
View file @
b1f21bb3
...
@@ -229,13 +229,17 @@ class Sync extends RequestProcessor {
...
@@ -229,13 +229,17 @@ class Sync extends RequestProcessor {
// Get changes can be an empty tag as well as have value
// Get changes can be an empty tag as well as have value
// code block partly contributed by dw2412
// code block partly contributed by dw2412
if
(
self
::
$decoder
->
getElementStartTag
(
SYNC_GETCHANGES
))
{
if
(
$starttag
=
self
::
$decoder
->
getElementStartTag
(
SYNC_GETCHANGES
))
{
$sc
->
AddParameter
(
$spa
,
"getchanges"
,
true
);
$sc
->
AddParameter
(
$spa
,
"getchanges"
,
true
);
if
((
$gc
=
self
::
$decoder
->
getElementContent
())
!==
false
)
{
if
((
$gc
=
self
::
$decoder
->
getElementContent
())
!==
false
)
{
$sc
->
AddParameter
(
$spa
,
"getchanges"
,
$gc
);
$sc
->
AddParameter
(
$spa
,
"getchanges"
,
$gc
);
}
}
// read the endtag if it's there, but don't fail if it isn't
// read the endtag if SYNC_GETCHANGES wasn't an empty tag
self
::
$decoder
->
getElementEndTag
();
if
(
$starttag
[
EN_FLAGS
]
&
EN_FLAGS_CONTENT
)
{
if
(
!
self
::
$decoder
->
getElementEndTag
())
{
return
false
;
}
}
}
}
if
(
self
::
$decoder
->
getElementStartTag
(
SYNC_WINDOWSIZE
))
{
if
(
self
::
$decoder
->
getElementStartTag
(
SYNC_WINDOWSIZE
))
{
...
...
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