Return True if the argument looks like a encoded cookie.
(data)
| 2618 | |
| 2619 | |
| 2620 | def cookie_is_encoded(data): |
| 2621 | ''' Return True if the argument looks like a encoded cookie.''' |
| 2622 | return bool(data.startswith(tob('!')) and tob('?') in data) |
| 2623 | |
| 2624 | |
| 2625 | def html_escape(string): |