Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WordPress_SexHackMe_Plugin
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
WordPress_SexHackMe_Plugin
Commits
171df842
Commit
171df842
authored
Oct 12, 2023
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check_url_or_path isn't correct for that form unless you move options
parent
eda5e218
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
functions-forms-save.php
includes/functions-forms-save.php
+6
-6
No files found.
includes/functions-forms-save.php
View file @
171df842
...
...
@@ -224,13 +224,13 @@ function save_sexhack_video_forms( $post_id)
// HLS playlist
if
(
$admin
&&
array_key_exists
(
'video_hls_'
.
$vt
,
$_POST
)
&&
check_url_or_path
(
sanitize_text_field
(
$_POST
[
'video_hls_'
.
$vt
])
)
&&
sanitize_text_field
(
$_POST
[
'video_hls_'
.
$vt
]
)
&&
(
strncasecmp
(
strrev
(
sanitize_text_field
(
$_POST
[
'video_hls_'
.
$vt
])),
'8u3m'
,
4
)
===
0
))
{
$video
->
__set
(
'hls_'
.
$vt
,
sanitize_text_field
(
$_POST
[
'video_hls_'
.
$vt
]));
}
else
if
(
!
$admin
&&
array_key_exists
(
'video_'
.
$vt
,
$_POST
)
&&
check_url_or_path
(
sanitize_text_field
(
$_POST
[
'video_'
.
$vt
])
))
sanitize_text_field
(
$_POST
[
'video_'
.
$vt
]
))
{
//$video->__set('hls_'.$vt, get_option('sexhack_video_tmp_path', '/tmp')."/".sanitize_text_field($_POST['video_'.$vt]));
sh_add_video_job
(
$video
->
id
,
'process_hls_'
.
$vt
,
get_option
(
'sexhack_video_tmp_path'
,
'/tmp'
)
.
"/"
.
sanitize_text_field
(
$_POST
[
'video_'
.
$vt
]));
...
...
@@ -288,7 +288,7 @@ function save_sexhack_video_forms( $post_id)
// Download
if
(
$admin
&&
array_key_exists
(
'video_download_'
.
$vt
,
$_POST
)
&&
check_url_or_path
(
sanitize_text_field
(
$_POST
[
'video_download_'
.
$vt
])
))
sanitize_text_field
(
$_POST
[
'video_download_'
.
$vt
]
))
{
$video
->
__set
(
'download_'
.
$vt
,
sanitize_text_field
(
$_POST
[
'video_download_'
.
$vt
]));
}
...
...
@@ -347,7 +347,7 @@ function save_sexhack_video_forms( $post_id)
// Animated gif path
if
(
$admin
&&
array_key_exists
(
'video_gif'
,
$_POST
)
&&
check_url_or_path
(
sanitize_text_field
(
$_POST
[
'video_gif'
])
))
if
(
$admin
&&
array_key_exists
(
'video_gif'
,
$_POST
)
&&
sanitize_text_field
(
$_POST
[
'video_gif'
]
))
$video
->
gif
=
sanitize_text_field
(
$_POST
[
'video_gif'
]);
elseif
(
!
$admin
&&
array_key_exists
(
'video_gif'
,
$_POST
)
&&
sanitize_text_field
(
$_POST
[
'video_gif'
]))
...
...
@@ -374,7 +374,7 @@ function save_sexhack_video_forms( $post_id)
$video
->
gif
=
false
;
// Small Animated gif path
if
(
$admin
&&
array_key_exists
(
'video_gif_small'
,
$_POST
)
&&
check_url_or_path
(
sanitize_text_field
(
$_POST
[
'video_gif_small'
])
))
if
(
$admin
&&
array_key_exists
(
'video_gif_small'
,
$_POST
)
&&
sanitize_text_field
(
$_POST
[
'video_gif_small'
]
))
$video
->
gif_small
=
sanitize_text_field
(
$_POST
[
'video_gif_small'
]);
elseif
(
!
$admin
&&
array_key_exists
(
'video_gif_small'
,
$_POST
)
&&
sanitize_text_field
(
$_POST
[
'video_gif_small'
]))
...
...
@@ -401,7 +401,7 @@ function save_sexhack_video_forms( $post_id)
$video
->
gif_small
=
false
;
// Preview video
if
(
$admin
&&
array_key_exists
(
'video_preview'
,
$_POST
)
&&
check_url_or_path
(
sanitize_text_field
(
$_POST
[
'video_preview'
])
))
if
(
$admin
&&
array_key_exists
(
'video_preview'
,
$_POST
)
&&
sanitize_text_field
(
$_POST
[
'video_preview'
]
))
$video
->
preview
=
sanitize_text_field
(
$_POST
[
'video_preview'
]);
elseif
(
!
$admin
&&
array_key_exists
(
'video_preview'
,
$_POST
)
&&
sanitize_text_field
(
$_POST
[
'video_preview'
]))
...
...
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