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

Closed
opened 2016-10-24 11:27:31 +02:00 by AbijeetP · 1 comment
AbijeetP commented 2016-10-24 11:27:31 +02:00 (Migrated from github.com)

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+-+
### 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+-+ ```
ssddanbrown commented 2016-10-30 14:34:13 +01:00 (Migrated from github.com)

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

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.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bookstack/bookstack#212
No description provided.