Ticket #1253 (closed defect: fixed)
Slider macro capable of creating bad cookies
| Reported by: | jdlrobson | Owned by: | MartinBudden |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.6.2 |
| Component: | core | Version: | |
| Severity: | low | Keywords: | cookies |
| Cc: |
Description
If in a TiddlyWiki I include <<slider cookie GettingStarted myslider>>
This creates a blank cookie called cookie. This is fine in a normal TiddlyWiki but can cause breakages in environments such as TiddlySpace? which depend on valid parseable cookies. As a result I broke my space with the message "400 Bad Request: malformed cookie: Illegal key value: cookie" just by using this seemingly harmless macro. The only way to fix my space was then to remove the macro call and clear out my cookies.
It seems that saving cookies with the slider macro only works for cookie names that begin with 'chk' So for instance <<slider chkCookie GettingStarted myslider>> works fine.
I think the core needs to be updated to prevent the storing of blank cookies.
