Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-collect
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
汪伟伟
data-collect
Commits
6ba13c1f
Commit
6ba13c1f
authored
Feb 04, 2024
by
汪伟伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ini_set('pcre.backtrack_limit', '2097152');
parent
d5010858
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
1 deletions
+6
-1
app/Admin/Controllers/AlreadyDoneTaskController.php
+1
-0
app/Admin/Controllers/NoDoneTaskController.php
+1
-1
app/Admin/Controllers/TasController.php
+2
-0
app/Admin/Controllers/TaskController.php
+2
-0
No files found.
app/Admin/Controllers/AlreadyDoneTaskController.php
View file @
6ba13c1f
...
...
@@ -342,6 +342,7 @@ class AlreadyDoneTaskController extends AdminController
$form
->
saved
(
function
(
Form
$form
)
{
$start
=
'src="'
;
$end
=
'" alt'
;
ini_set
(
'pcre.backtrack_limit'
,
'2097152'
);
$pattern
=
'/'
.
preg_quote
(
$start
)
.
'(.*?)'
.
preg_quote
(
$end
)
.
'/'
;
preg_match_all
(
$pattern
,
$form
->
input
(
'collects.net_img'
),
$matches
);
$images
=
''
;
...
...
app/Admin/Controllers/NoDoneTaskController.php
View file @
6ba13c1f
...
...
@@ -366,9 +366,9 @@ class NoDoneTaskController extends AdminController
// });
//保存后回调
$form
->
saved
(
function
(
Form
$form
)
{
$start
=
'src="'
;
$end
=
'" alt'
;
ini_set
(
'pcre.backtrack_limit'
,
'2097152'
);
$pattern
=
'/'
.
preg_quote
(
$start
)
.
'(.*?)'
.
preg_quote
(
$end
)
.
'/'
;
preg_match_all
(
$pattern
,
$form
->
input
(
'collects.net_img'
),
$matches
);
$images
=
''
;
...
...
app/Admin/Controllers/TasController.php
View file @
6ba13c1f
...
...
@@ -239,6 +239,7 @@ class TasController extends AdminController
$start
=
'src="'
;
$end
=
'" alt'
;
$pattern
=
'/'
.
preg_quote
(
$start
)
.
'(.*?)'
.
preg_quote
(
$end
)
.
'/'
;
ini_set
(
'pcre.backtrack_limit'
,
'2097152'
);
preg_match_all
(
$pattern
,
$form
->
input
(
'guide'
),
$matches
);
$images
=
''
;
foreach
(
$matches
[
1
]
as
$v
)
{
...
...
@@ -304,6 +305,7 @@ class TasController extends AdminController
$start
=
'src="'
;
$end
=
'" alt'
;
$pattern
=
'/'
.
preg_quote
(
$start
)
.
'(.*?)'
.
preg_quote
(
$end
)
.
'/'
;
ini_set
(
'pcre.backtrack_limit'
,
'2097152'
);
preg_match_all
(
$pattern
,
$param
[
'guide'
],
$matches
);
$images
=
''
;
foreach
(
$matches
[
1
]
as
$v
)
{
...
...
app/Admin/Controllers/TaskController.php
View file @
6ba13c1f
...
...
@@ -334,6 +334,7 @@ class TaskController extends AdminController
$start
=
'src="'
;
$end
=
'" alt'
;
$pattern
=
'/'
.
preg_quote
(
$start
)
.
'(.*?)'
.
preg_quote
(
$end
)
.
'/'
;
ini_set
(
'pcre.backtrack_limit'
,
'2097152'
);
preg_match_all
(
$pattern
,
$form
->
input
(
'guide'
),
$matches
);
$images
=
''
;
foreach
(
$matches
[
1
]
as
$v
)
{
...
...
@@ -395,6 +396,7 @@ class TaskController extends AdminController
$start
=
'src="'
;
$end
=
'" alt'
;
$pattern
=
'/'
.
preg_quote
(
$start
)
.
'(.*?)'
.
preg_quote
(
$end
)
.
'/'
;
ini_set
(
'pcre.backtrack_limit'
,
'2097152'
);
preg_match_all
(
$pattern
,
$param
[
'guide'
],
$matches
);
$images
=
''
;
foreach
(
$matches
[
1
]
as
$v
)
{
...
...
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