~/talk

Don't trust your users

Talkat SunshinePHP 2014 · 2014-02-06..02-08· [security, php]
slides:none on file

Shows concrete fixes: PHP’s built‑in filter module (present since 5.2) and filter_var / filter_var_array for ints floats emails IPs URLs and basic sanitization; when that’s insufficient, pulls in aura.filter or framework validators (Zend, Symfony2 forms/annotations) or custom callbacks; demonstrates rule types like soft rules vs hard/stop, validator chaining, and sanitizers; uses contact‑form examples and the BestBuy price‑tampering anecdote, claims filter_validate_email handles ~99% of cases, and recommends using libraries not hand‑rolled regex.

AI-written summary · about

  1. 0:00Introduction
  2. 3:52Cannot trust user input
  3. 6:42Client-side limits
  4. 11:19PHP filter module
  5. 21:55Aura.filter validation
  6. 30:05Framework validation
  7. 34:00Validation best practices
  8. 37:26When to validate
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.