YGGverse / YGGo

YGGo! Distributed Web Search Engine
MIT License
14 stars 3 forks source link

Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation #9

Closed ygguser closed 1 year ago

ygguser commented 1 year ago

We will get an error message if we try to enter such a search query: http://[202:5855:991b:6e6b:e306:53f2:b058:2186] or even just /.

d47081 commented 1 year ago

Thanks for report!

it maybe depends of the last update - where I have enabled extended search syntax

on this example:

quorum matching operator:

"the world is a wonderful place"/3

so fixed, but not closing the issue,

maybe I need to improve it because extended syntax constructions with following chars was disabled https://github.com/YGGverse/YGGo/blob/main/library/filter.php#L60

d47081 commented 1 year ago

Well,

finally have implemented 'not-safe' special chars filtering for regular users:

https://github.com/YGGverse/YGGo#default-constructions

for geeks, has been implemented special mode where they can play with index by using their own SphinxQL requests:

https://github.com/YGGverse/YGGo#extended-syntax

Let's maybe close the subject, please reopen if I something missed in the default mode.

p.s. not disabling errors print on a screen to make people able to report or contribute.