Searching with " - " at the end of the string causes application to barf #185

Closed
opened 2026-02-04 17:30:06 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @AbijeetP on GitHub (Oct 24, 2016).

For Bug Reports

PHP Version: PHP 5.6.24-0+deb8u1
MySQL Version: MariaDB 10.0.x
App Version: 0.12.1

Expected Behavior:

In the top search bar, search with a term that ends with a -. It should show entities that contain or end with -. Search term example - actual -. Note the space before "-".

Actual Behavior:

Application barfs and throws a "Whoops, looks like something went wrong.".

REQUEST URL

/search/all?term=asdasda+-+
Originally created by @AbijeetP on GitHub (Oct 24, 2016). ### For Bug Reports PHP Version: PHP 5.6.24-0+deb8u1 MySQL Version: MariaDB 10.0.x App Version: 0.12.1 #### Expected Behavior: In the top search bar, search with a term that ends with a `-`. It should show entities that contain or end with `-`. Search term example - `actual -`. Note the space before "-". #### Actual Behavior: Application barfs and throws a "Whoops, looks like something went wrong.". #### REQUEST URL ``` /search/all?term=asdasda+-+ ```
OVERLORD added the 🐛 Bug label 2026-02-04 17:30:06 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Oct 30, 2016):

Thank you for finding this issue. It is now fixed as of release v0.12.2.

@ssddanbrown commented on GitHub (Oct 30, 2016): Thank you for finding this issue. It is now fixed as of release [v0.12.2](https://github.com/BookStackApp/BookStack/releases/tag/v0.12.2).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#185