Closed (duplicate)
Project:
Drupal core
Version:
4.6.9
Component:
theme system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2007 at 06:55 UTC
Updated:
6 Aug 2008 at 19:41 UTC
pager_query does not work when there is whitespace before the SELECT. Could be fixed by changing the regex from:
'/SELECT.*?FROM/As', '/ORDER BY .*/'
to:
'/ *SELECT.*?FROM/As', '/ORDER BY .*/'
or by putting a trim() around $query.
This bug also seems to be present in HEAD: http://api.drupal.org/api/HEAD/function/pager_query
Comments
Comment #1
damien tournoud commentedDuplicate of #288837: Pager.inc regexp misses whitespace use case, even if this one was older.