Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
iwl-live
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Anthony.Suerte
iwl-live
Commits
4f4fa178
Commit
4f4fa178
authored
Oct 06, 2021
by
Antonio.Suerte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flat3 Webhook Update
parent
a0575e79
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
23 deletions
+1
-23
Flat3Webhook.php
api/flat3/Flat3Webhook.php
+1
-23
No files found.
api/flat3/Flat3Webhook.php
View file @
4f4fa178
...
@@ -51,12 +51,6 @@ class Flat3Webhook extends System {
...
@@ -51,12 +51,6 @@ class Flat3Webhook extends System {
*/
*/
private
$devSetting
=
NULL
;
private
$devSetting
=
NULL
;
/**
*
* @var boolean
*/
private
$devSettingEnabled
=
false
;
public
function
__construct
(
$webhookName
=
NO_STRING
){
public
function
__construct
(
$webhookName
=
NO_STRING
){
parent
::
__construct
();
parent
::
__construct
();
...
@@ -261,14 +255,6 @@ class Flat3Webhook extends System {
...
@@ -261,14 +255,6 @@ class Flat3Webhook extends System {
return
VAL_INT_4
;
return
VAL_INT_4
;
if
(
$this
->
devSetting
!=
null
&&
is_object
(
$this
->
devSetting
)){
if
(
$this
->
devSetting
!=
null
&&
is_object
(
$this
->
devSetting
)){
/**
*
* this condition can bypass the validation if returns false.
*
*/
if
(
!
$this
->
devSettingEnabled
)
return
VAL_INT_1
;
if
(
isset
(
$this
->
devSetting
->
blocked_webhooks
)){
if
(
isset
(
$this
->
devSetting
->
blocked_webhooks
)){
$blockedWebhookNames
=
explode
(
","
,
$this
->
devSetting
->
blocked_webhooks
);
$blockedWebhookNames
=
explode
(
","
,
$this
->
devSetting
->
blocked_webhooks
);
...
@@ -286,14 +272,6 @@ class Flat3Webhook extends System {
...
@@ -286,14 +272,6 @@ class Flat3Webhook extends System {
private
function
checkFlat3HookIpAddress
(){
private
function
checkFlat3HookIpAddress
(){
if
(
$this
->
devSetting
!=
null
&&
is_object
(
$this
->
devSetting
)){
if
(
$this
->
devSetting
!=
null
&&
is_object
(
$this
->
devSetting
)){
/**
*
* this condition can bypass the validation if returns false.
*
*/
if
(
!
$this
->
devSettingEnabled
)
return
VAL_INT_1
;
if
(
isset
(
$this
->
devSetting
->
ip_address
)){
if
(
isset
(
$this
->
devSetting
->
ip_address
)){
$ipAddresses
=
explode
(
","
,
$this
->
devSetting
->
ip_address
);
$ipAddresses
=
explode
(
","
,
$this
->
devSetting
->
ip_address
);
...
...
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