Closed Bug 768347 Opened 14 years ago Closed 14 years ago

Templates do not allow empty parameters

Categories

(developer.mozilla.org Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: trevorhemail-mozbug, Assigned: lorchard)

Details

(Whiteboard: u=user c=wiki s=2012-07-18 p=2 t=2012-07-09)

Using a template with an empty, parameter results in a Syntax error with Expected "\\\"" or [^"\\] but "\"" found. I would expect that the parameter would be available as an empty string to the template.
Whiteboard: u=user c=wiki s=2012-07-18 p=
Can you point at a sample page where you saw this error?
Whiteboard: u=user c=wiki s=2012-07-18 p= → u=user c=wiki s=2012-07-18 p=2
https://developer-new.mozilla.org/en-US/docs/User:trevorh/bTest While the PreviousNext template only uses 2 parameters it should just accept the empty and additional parameters.
Assignee: nobody → lorchard
Commits pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/1b5731ab74e2d5227f35c11e5db11b70afa766cf fix bug 768347: Templates should accept empty quoted parameters https://github.com/mozilla/kuma/commit/acc1da960df51cfd70d9bbaa81b6306c0c8d1ae8 Merge pull request #352 from lmorchard/empty-parameters-768347 fix bug 768347: Templates should accept empty quoted parameters
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: u=user c=wiki s=2012-07-18 p=2 → u=user c=wiki s=2012-07-18 p=2 t=2012-07-09
Version: Kuma → unspecified
Component: Deki Infrastructure → Other
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.