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
dea2b672
Commit
dea2b672
authored
Nov 19, 2015
by
Sebastian Kummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZP-775 Allow 48 byte long folderIds.
Released under the Affero GNU General Public License (AGPL) version 3.
parent
e62f4478
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
z-push-admin.php
src/z-push-admin.php
+4
-3
No files found.
src/z-push-admin.php
View file @
dea2b672
...
@@ -239,7 +239,7 @@ class ZPushAdminCLI {
...
@@ -239,7 +239,7 @@ class ZPushAdminCLI {
elseif
(
isset
(
$options
[
'type'
])
&&
!
empty
(
$options
[
'type'
]))
elseif
(
isset
(
$options
[
'type'
])
&&
!
empty
(
$options
[
'type'
]))
self
::
$type
=
strtolower
(
trim
(
$options
[
'type'
]));
self
::
$type
=
strtolower
(
trim
(
$options
[
'type'
]));
// if type is set, it must be one of known types or a 44 byte long folder id
// if type is set, it must be one of known types or a 44
or 48
byte long folder id
if
(
self
::
$type
!==
false
)
{
if
(
self
::
$type
!==
false
)
{
if
(
self
::
$type
!==
self
::
TYPE_OPTION_EMAIL
&&
if
(
self
::
$type
!==
self
::
TYPE_OPTION_EMAIL
&&
self
::
$type
!==
self
::
TYPE_OPTION_CALENDAR
&&
self
::
$type
!==
self
::
TYPE_OPTION_CALENDAR
&&
...
@@ -247,10 +247,11 @@ class ZPushAdminCLI {
...
@@ -247,10 +247,11 @@ class ZPushAdminCLI {
self
::
$type
!==
self
::
TYPE_OPTION_TASK
&&
self
::
$type
!==
self
::
TYPE_OPTION_TASK
&&
self
::
$type
!==
self
::
TYPE_OPTION_NOTE
&&
self
::
$type
!==
self
::
TYPE_OPTION_NOTE
&&
self
::
$type
!==
self
::
TYPE_OPTION_HIERARCHY
&&
self
::
$type
!==
self
::
TYPE_OPTION_HIERARCHY
&&
strlen
(
self
::
$type
)
!==
44
)
{
strlen
(
self
::
$type
)
!==
44
&&
strlen
(
self
::
$type
)
!==
48
)
{
self
::
$errormessage
=
"Wrong 'type'. Possible values are: "
.
self
::
$errormessage
=
"Wrong 'type'. Possible values are: "
.
"'"
.
self
::
TYPE_OPTION_EMAIL
.
"', '"
.
self
::
TYPE_OPTION_CALENDAR
.
"', '"
.
self
::
TYPE_OPTION_CONTACT
.
"', '"
.
self
::
TYPE_OPTION_TASK
.
"', '"
.
self
::
TYPE_OPTION_NOTE
.
"', "
.
self
::
TYPE_OPTION_HIERARCHY
.
"' "
.
"'"
.
self
::
TYPE_OPTION_EMAIL
.
"', '"
.
self
::
TYPE_OPTION_CALENDAR
.
"', '"
.
self
::
TYPE_OPTION_CONTACT
.
"', '"
.
self
::
TYPE_OPTION_TASK
.
"', '"
.
self
::
TYPE_OPTION_NOTE
.
"', "
.
self
::
TYPE_OPTION_HIERARCHY
.
"' "
.
"or a 44 byte long folder id (as hex)."
;
"or a 44
or 48
byte long folder id (as hex)."
;
return
;
return
;
}
}
}
}
...
...
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