zulip/zerver
Tim Abbott d90f7c72a3 zephyr: Fix broken postgres regular expression logic and add tests.
Like many rare-case code with new tests, it turns out that the logic
for handling null characters in our Zephyr postgres query escaping
never worked, in multiple ways.  First, it always changed the second
character in s, not the current one being inspected, and second, the
value it replaced it with was no the correct postgres escape of the
null byte.  We fix this and add tests.

This completes the effort to get zerver/views/messages.py to 100%
test coverage.

Fixes #1006.
2017-03-01 10:38:48 -08:00
..
fixtures github: Add list and fixtures for ignored events to webhook. 2017-02-26 19:17:53 -08:00
lib Support email changes for !avatar syntax. 2017-02-28 21:56:04 -08:00
management generate_realm_creation_link: Clean up instructions. 2017-02-21 20:19:16 -08:00
migrations realm-icon: Add realm icon feature. 2017-02-26 12:16:07 -08:00
templatetags minify: Clean up unnecessary tuple/list complexity. 2017-01-19 14:51:16 -08:00
tests zephyr: Fix broken postgres regular expression logic and add tests. 2017-03-01 10:38:48 -08:00
tornado Change now() to timezone.now() throughout codebase. 2017-02-28 16:03:37 -08:00
views zephyr: Fix broken postgres regular expression logic and add tests. 2017-03-01 10:38:48 -08:00
webhooks github: Add list and fixtures for ignored events to webhook. 2017-02-26 19:17:53 -08:00
worker Add customizable invite-new-user text. 2017-02-21 22:35:01 -08:00
__init__.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
apps.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
context_processors.py lint: Clean up E241 PEP-8 rule. 2017-01-23 21:21:14 -08:00
decorator.py Change now() to timezone.now() throughout codebase. 2017-02-28 16:03:37 -08:00
exceptions.py Annotate zerver.exceptions, zerver.filters, zerver.logging_handlers. 2016-06-04 22:51:18 -07:00
filters.py errors: Remove build_request_repr logic. 2017-01-29 14:18:22 -08:00
forms.py users: Verify full names explicitly in account registration. 2017-02-07 20:20:32 -08:00
logging_handlers.py mypy: Fix several Optional typing errors. 2017-02-10 23:53:44 -08:00
middleware.py mypy: Fix inconsistencies in use of *args/**kwargs. 2017-02-18 18:39:44 -08:00
models.py page_params: Modify `bot_list` to hold active as well as inactive bots. 2017-02-26 23:56:51 -08:00
static_header.txt Update static_header.txt with new license information. 2016-08-13 00:37:21 -07:00
storage.py storage: Fix minifying CSS/JS files with unicode in them. 2017-02-16 22:24:14 -08:00