зеркало из https://github.com/mozilla/gecko-dev.git
Bug 274640: silently fix up custom sort order cookies which erroneously include SQL LIMIT clause. Patch by gerv; r=vladd,justdave; a=justdave.
This commit is contained in:
Родитель
ed164b7d39
Коммит
a38c46d4f4
|
@ -612,6 +612,11 @@ my @selectnames = map($columns->{$_}->{'name'}, @selectcolumns);
|
|||
if (!$order || $order =~ /^reuse/i) {
|
||||
if ($cgi->cookie('LASTORDER')) {
|
||||
$order = $cgi->cookie('LASTORDER');
|
||||
|
||||
# Cookies from early versions of Specific Search included this text,
|
||||
# which is now invalid.
|
||||
$order =~ s/ LIMIT 200//;
|
||||
|
||||
$order_from_cookie = 1;
|
||||
}
|
||||
else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче