Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
238
Issues
238
List
Boards
Labels
Service Desk
Milestones
Merge Requests
44
Merge Requests
44
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Compare Revisions
3c6debd6f54e6f476c62273536807a642e85bae2...7aaa5cf9ebfb09f2d9fda1a2d69174a9d47277cc
Source
7aaa5cf9ebfb09f2d9fda1a2d69174a9d47277cc
Select Git revision
...
Target
3c6debd6f54e6f476c62273536807a642e85bae2
Select Git revision
Compare
Commits (3)
(chore) Redirect error_log to /dev/null during spec test execution -
#665
· 04a84c1c
Guy Thouret
authored
20 minutes ago
04a84c1c
(chore) Use error_log instead of echo in Security classes so we can control the output -
#665
· 98e2c87d
Guy Thouret
authored
16 minutes ago
98e2c87d
(chore) Use error_log instead of echo in Trending\Manager so we can control the output -
#665
· 7aaa5cf9
Guy Thouret
authored
10 minutes ago
7aaa5cf9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
Core/Security/AbuseGuard/Ban.php
Core/Security/AbuseGuard/Ban.php
+2
-2
Core/Security/RateLimits/Scanner.php
Core/Security/RateLimits/Scanner.php
+1
-1
Core/Trending/Manager.php
Core/Trending/Manager.php
+2
-2
Spec/bootstrap.php
Spec/bootstrap.php
+3
-0
No files found.
Core/Security/AbuseGuard/Ban.php
View file @
7aaa5cf9
...
...
@@ -44,7 +44,7 @@ class Ban
return
true
;
}
e
cho
"
\n
$user->guid
now banned (
{
$this
->
accused
->
getScore
()
}
)
\n
"
;
e
rror_log
(
"
$user->guid
now banned (
{
$this
->
accused
->
getScore
()
}
)"
)
;
$this
->
channelsBanManager
->
setUser
(
$user
)
...
...
@@ -52,7 +52,7 @@ class Ban
$this
->
recover
->
setAccused
(
$this
->
accused
)
->
recover
();
e
cho
"
\n
$user->guid
recovered"
;
e
rror_log
(
"
$user->guid
recovered"
)
;
if
(
$this
->
events
)
{
$event
=
new
Core\Analytics\Metrics\Event
();
...
...
This diff is collapsed.
Click to expand it.
Core/Security/RateLimits/Scanner.php
View file @
7aaa5cf9
...
...
@@ -42,7 +42,7 @@ class Scanner
}
$this
->
manager
->
impose
();
e
cho
"
\n
$user->guid
is now rate limited for
{
$opts
[
'period'
]
}
seconds"
;
e
rror_log
(
"
$user->guid
is now rate limited for
{
$opts
[
'period'
]
}
seconds"
)
;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Core/Trending/Manager.php
View file @
7aaa5cf9
...
...
@@ -91,7 +91,7 @@ class Manager
//validate this entity is ok
if
(
!
$this
->
validator
->
isValid
(
$entity
,
$rating
))
{
e
cho
"
\n
[
$rating
]
$key
:
$guid
(
$score
) invalid"
;
e
rror_log
(
"[
$rating
]
$key
:
$guid
(
$score
) invalid"
)
;
continue
;
}
...
...
@@ -125,7 +125,7 @@ class Manager
$guids
=
[];
foreach
(
$scores
[
$key
]
as
$guid
=>
$score
)
{
$guids
[]
=
$guid
;
e
cho
"
\n
[
$rating
]
$key
:
$guid
(
$score
)"
;
e
rror_log
(
"[
$rating
]
$key
:
$guid
(
$score
)"
)
;
}
$this
->
repository
->
add
(
$key
,
$guids
,
$rating
);
...
...
This diff is collapsed.
Click to expand it.
Spec/bootstrap.php
View file @
7aaa5cf9
...
...
@@ -2,6 +2,9 @@
ini_set
(
'memory_limit'
,
'256M'
);
# Redirect error_log output to blackhole
ini_set
(
'error_log'
,
'/dev/null'
);
global
$CONFIG
;
date_default_timezone_set
(
'UTC'
);
...
...
This diff is collapsed.
Click to expand it.