koppenho / brother_ql_web

A Python-based web service to print labels on Brother QL label printers. Based on brother_ql_web (https://github.com/pklaus/brother_ql_web) with cherry picked contributions of others (https://github.com/koppenho/brother_ql_web/blob/master/CONTRIBUTING.md)
GNU General Public License v3.0
2 stars 0 forks source link

endless loop if product (title line) equal (or ends with) a string of length 1 #3

Closed koppenho closed 1 year ago

koppenho commented 1 year ago

The following call will hang the brother_ql_web.py in an endless loop.

Repeated by: curl -S -o image.png 'http://localhost:8013/api/preview/grocy?product=A&grocycode=grcy:p:4711:63ad991cdc1a9&font_family=DejaVu%20Sans%20(Book)&due_date=2099-12-31'

koppenho commented 1 year ago

fixed in commit https://github.com/koppenho/brother_ql_web/commit/ed7766b73d6e092ab78dc00d19b46b50967d7682