handlersearch: Allow all characters by escaping FTS
Escape FTS queries by simply treating everything as string. Though this way a user cannot use operators, it's an improvement over how it was done before. Closes: #7
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
#include "sqlitedao.h"
|
||||
class PageDaoSqlite : public PageDao, protected SqliteDao
|
||||
{
|
||||
private:
|
||||
std::string ftsEscape(std::string input);
|
||||
|
||||
public:
|
||||
PageDaoSqlite()
|
||||
{
|
||||
|
مرجع در شماره جدید
Block a user