#51172 closed defect (bug) (duplicate)
l10n.php missing validation
Reported by: | vickdini | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.5 |
Component: | I18N | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
Hi! I was updating an automation script and, while debugging, I noticed that the line 1075 of the file \wp-includes\l10n.php performs a comparison operation between two array elements before verifying the existence of both (i.e. one is verified, the other isn't and this one throws an error):
Current line 1075:
} elseif ( ! isset( $src_url['host'] ) || $src_url['host'] === **$site_url['host']** ) {
Proposed change:
} elseif ( ! isset( $src_url['host'] ) **|| ! isset( $site_url['host'] )** || $src_url['host'] === $site_url['host'] ) {
I hope this helps.
Best regards,
Vick
Change History (3)
#1
@
4 years ago
Version 0, edited 4 years ago
by
(next)
Note: See
TracTickets for help on using
tickets.
Hi! I was updating an automation script and, while debugging, I noticed that the line 1075 of the file \wp-includes\l10n.php performs a comparison operation between two array elements before verifying the existence of both (i.e. one is verified, the other isn't and this one throws an error):
Current line 1075:
Proposed change:
I hope this helps.
Best regards,
Vick