mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
'str(i)str(...)' could be replaced with 'str(i)pos(...)'.
(cherry picked from commit b4d079f
)
This commit is contained in:
parent
5dd290f2b2
commit
8e5338e5d3
8 changed files with 14 additions and 14 deletions
|
@ -1741,7 +1741,7 @@ function redirect($url)
|
|||
trigger_error("Headers already sent in $filename($linenum)", E_USER_ERROR);
|
||||
}
|
||||
|
||||
if (strstr(urldecode($url), "\n") || strstr(urldecode($url), "\r") || strstr(urldecode($url), ';url')) {
|
||||
if (false !== strpos(urldecode($url), "\n") || false !== strpos(urldecode($url), "\r") || false !== strpos(urldecode($url), ';url')) {
|
||||
bb_die('Tried to redirect to potentially insecure url');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue