Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
imcpress
imcpress-plugin
Commits
dc1ac425
Commit
dc1ac425
authored
Jun 24, 2022
by
dev
Browse files
User wp_safe_redirect for... safety
parent
40dfac6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/IMCPress/User/Contributor.php
View file @
dc1ac425
...
...
@@ -123,8 +123,8 @@ class Contributor {
$admin_pages
=
array
(
'tools.php'
,
);
if
(
in_array
(
$last
,
$admin_pages
)
)
{
wp_redirect
(
admin_url
()
);
if
(
in_array
(
$last
,
$admin_pages
,
true
)
)
{
wp_
safe_
redirect
(
admin_url
()
);
exit
;
}
}
...
...
Write
Preview
Supports
Markdown
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