Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#314 closed enhancement (fixed)

spiffy-request-vars: as-boolean enhancements

Reported by: Moritz Heidkamp Owned by: Mario Domenech Goulart
Priority: not urgent at all Milestone:
Component: extensions Version: 4.5.x
Keywords: spiffy-request-vars as-boolean plusplus Cc:
Estimated difficulty:

Description

The attached patch enhances as-boolean in two ways: It adds "true" to the default list of true-boolean-values and it considers the mere presence of the parameter as #t, i.e. a query string like "?foo" would bind foo to #t when it is cast as-boolean. This is consistent with uri-common's parsing behavior:

(uri-query (uri-reference "?foo"))
=>
((foo . #t))

Attachments (1)

spiffy-request-vars-as-boolean.patch (778 bytes) - added by Moritz Heidkamp 12 years ago.

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by Moritz Heidkamp

comment:1 Changed 12 years ago by Mario Domenech Goulart

Resolution: fixed
Status: newclosed

Applied, thanks. See spiffy-request-vars 0.11.

comment:2 Changed 12 years ago by felix winkelmann

Milestone: 4.6.0

Milestone 4.6.0 deleted

Note: See TracTickets for help on using tickets.