summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/widgets/debug_manager.js
diff options
context:
space:
mode:
authorDaniel Reis <dgreis@sapo.pt>2015-07-30 10:04:04 +0100
committerOlivier Dony <odo@openerp.com>2015-08-04 11:45:01 +0200
commit8b3d69a0d7bba324ec9022320c547af983546310 (patch)
treea0ec23b84bf381ccbc2169e8458d33a3ec5fd7cf /addons/web/static/src/js/widgets/debug_manager.js
parent180b2e774621947c03d9ed176547b6c7e745f5df (diff)
[FIX] orm: performance of regex to check search `order` spec
This regex is used for a quick sanity check of the order_spec in `search(order=<order_spec>)`. Because it was build on the repetition of a group ending with a series of optional patterns, it could cause expensive backtracking when the order spec did not actually match the regex (the regex engine was trying all possible ways to split the groups) Forcing the repeating group to either end with a comma or the end of the string prevents prohibitive backtracking, while being even more restrictive with regard to the syntax of the order spec. Closes #7755
Diffstat (limited to 'addons/web/static/src/js/widgets/debug_manager.js')
0 files changed, 0 insertions, 0 deletions