WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#19786 closed defect (bug) (worksforme)

make sure $step is an integer. some space fixes.

Reported by: Caspie Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Upgrade/Install Keywords: has-patch
Focuses: Cc:

Description

Make sure the step variable is an integer if isset

Attachments (1)

19786.diff (3.0 KB) - added by Caspie 5 years ago.

Download all attachments as: .zip

Change History (7)

@Caspie
5 years ago

#1 @DrewAPicture
5 years ago

  • Keywords has-patch added

#2 @DrewAPicture
5 years ago

  • Version set to 3.3.1

#3 @linuxologos
5 years ago

  • Version 3.3.1 deleted

That piece of code is much much older! Actually from the beginning. ;)

#4 @SergeyBiryukov
5 years ago

  • Milestone changed from Awaiting Review to 3.4

#5 @nacin
4 years ago

  • Milestone 3.4 deleted
  • Resolution set to worksforme
  • Status changed from new to closed

$step = isset( $_GETstep? ) ? (int) $_GETstep? : 0; is already in core.

Version 0, edited 4 years ago by nacin (next)

#6 @nacin
4 years ago

In [20618]:

Int cast a step variable. see #19786. props Caspie.

Note: See TracTickets for help on using tickets.