1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-05 20:31:03 +01:00
phorge-phorge/src
epriestley e053534c7e (stable) Prevent typeahead sources from querying against empty tokens
Summary:
Certain unusual queries, like `[-]`, could tokenize into a list which included the empty string.

This would then convert into a query for `... LIKE "%"` which just joins the entire table.

Instead: tokenize smarter; never return the empty token; add some test cases.

Test Plan: Ran unit tests. Queried for `[[blah blah]]`, saw a reasonable query come out the other end.

Reviewers: chad

Reviewed By: chad

Subscribers: 20after4

Differential Revision: https://secure.phabricator.com/D16888
2016-11-17 09:45:29 -08:00
..
__tests__ Use PhutilClassMapQuery instead of PhutilSymbolLoader 2015-08-14 07:49:01 +10:00
aphront Make the "All Day Event" control use a checkbox instead of a dropdown 2016-10-31 14:18:59 -07:00
applications (stable) Prevent typeahead sources from querying against empty tokens 2016-11-17 09:45:29 -08:00
docs Fix a typo of the word "granularity" 2016-11-08 12:39:45 -08:00
extensions Add src/extensions/ to Phabricator 2013-08-14 15:38:06 -07:00
infrastructure (stable) Promote 2016 Week 46 2016-11-11 17:08:27 -08:00
view Require several advanced postgraduate degrees to understand object policies 2016-11-09 15:05:38 -08:00
__phutil_library_init__.php
__phutil_library_map__.php Remove plain-text file view of Diffusion files. 2016-11-10 00:40:09 +00:00