Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #7110

Closed
Open
Created Oct 14, 2012 by David Fifield@dcf

Do real parsing of boolean query string parameters

The debug query string parameter accepts anything, even values like "0" and false, as a way to turn on debug mode.

http://crypto.stanford.edu/flashproxy/embed.html?debug=0

Add a get_query_string_param_boolean function and use it to read the debug value. The function should return true when it receives any of these three strings (and only these strings; no case-folding or anything else):

  • "true"
  • "1"
  • "" The function should return false iff it receives either of these strings:
  • "false"
  • "0" The function should return null in all other cases.

There need to be a couple of simple test cases added to flashproxy-test.js.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking