Closed Bug 655146 Opened 14 years ago Closed 14 years ago

Give smart_int() a Kevlar vest

Categories

(support.mozilla.org :: Code Quality, task, P4)

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: erik, Assigned: tgavankar)

Details

Somebody put something like "10e309" in a querystring param, and smart_int() spit out "OverflowError: cannot convert float infinity to integer". Let's not allow explicit exponents in input.
Assignee: nobody → tgavankar
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: 2011Q2 → 2.9
Please add verification steps or mark as [qa-], thanks
Try setting ?page=1e310 on questions. Shouldn't get a server error.
Verified no server errors from added that ending on questions pages
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.