layerindex-web/layerindex
Paul Eggleton a7820077b0 Fix broken regex for recipes with names containing + signs
In order to show bbappends on the recipe detail page we are doing a
regex query to find any whose names match up with the recipe. In the
layer index instance at layers.openembedded.org viewing the recipe
detail page for any recipe whose name contains ++ (e.g. libsigc++-2.0 in
meta-oe) results in an invalid regex and causes a database error. Escape
any + signs in the name used within the regex in order to fix this.

(I wasn't actually able to reproduce this on my own setup despite also
using MariaDB, but I did find that the unescaped query was not correctly
matching records so it needed to be fixed anyway.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-10-02 11:39:57 +13:00
..
migrations Properly show update task success/failure 2018-09-20 16:04:49 +12:00
static Fix wrapping on update detail page 2018-10-01 16:32:15 +13:00
templatetags Show update task output more smoothly 2018-09-20 16:04:49 +12:00
tools Auto-determine web/file/tree/commit URLs for gitlab.com 2018-10-01 15:42:59 +13:00
__init__.py Initial commit of layerindex-web 2013-02-13 12:09:57 +00:00
admin.py admin: allow searching on vcs_url on layer/layerbranch 2018-10-01 15:46:13 +13:00
bulkchange.py update: fix error on LAYERRECOMMENDS failure 2018-10-01 11:43:52 +13:00
context_processors.py Add support for other distro comparisons 2018-08-07 14:44:27 +02:00
forms.py forms: fix validation of repository URLs in layer edit form 2018-10-01 15:06:41 +13:00
layerconfparse.py layerconfparse.py: remove unused layerbranch from parse_layer() 2017-07-21 08:14:57 +02:00
models.py Add object string representation to truncation warning message 2018-10-01 16:14:40 +13:00
querysethelper.py Replace usage of model._meta.get_all_field_names() 2018-04-24 10:15:47 +12:00
recipedesc.py layerindex: Update tinfoil to call shutdown method 2017-01-11 21:56:35 +13:00
recipeparse.py update: fix error on LAYERRECOMMENDS failure 2018-10-01 11:43:52 +13:00
restperm.py expose REST API for layerindex 2014-09-24 11:32:34 +01:00
restviews.py restviews: add additional layer view with extra nested fields 2018-02-07 11:27:48 +13:00
simplesearch.py Improve recipe search 2013-02-19 17:22:45 +00:00
tasks.py Properly show update task success/failure 2018-09-20 16:04:49 +12:00
update_layer.py update: allow patch parsing to work with python 2 2018-10-01 16:20:42 +13:00
update.py update: fix commands.getstatusoutput errors when parsing python2 branch 2018-10-01 16:19:30 +13:00
urls_branch.py Add ability to trigger comparison updates manually from UI 2018-08-13 16:04:14 +02:00
urls.py Add an email test function 2018-10-01 17:04:44 +13:00
utils.py update: use lists for git clone/checkout command parameters 2018-10-01 15:06:41 +13:00
views.py Fix broken regex for recipes with names containing + signs 2018-10-02 11:39:57 +13:00