Moodle

new validate_param() for strict param validation

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: General
  • Labels:
    None
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

In some cases our clean_param() is not good enough, the problem is that external systems do not expect our cleaning practices - for example external system sends invalid username in create user request, moodle would create user with different username - it should be much safer to throw exception instead

Activity

Hide
Petr Škoda (skodak) added a comment -

implemented

Show
Petr Škoda (skodak) added a comment - implemented

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: