View Full Version : [FIXED][3] Can't view subscribed threads from UserCP in 2.2.9
tamarian
Fri 29th Nov '02, 4:29pm
In member2.php, I commented out this line
$perpage = intval($perpage);
in
$perpage = intval($perpage);
if (!isset($perpage) or $perpage>200) { //max of 200, per several users requests
$perpage=$maxthreads;
}
And subscribed threads are back. Need a cleaner solution though..
Steve Machol
Fri 29th Nov '02, 5:40pm
Bug confirmed. Moving to Bugs forum.
MUG
Fri 29th Nov '02, 5:44pm
Originally posted by tamarian
In member2.php, I commented out this line
$perpage = intval($perpage);
in
$perpage = intval($perpage);
if (!isset($perpage) or $perpage>200) { //max of 200, per several users requests
$perpage=$maxthreads;
}
And subscribed threads are back. Need a cleaner solution though.. After:$perpage = intval($perpage);Add: if($perpage==0) $perpage=15; //or whatever number you want
Stadler
Fri 29th Nov '02, 7:23pm
Try the following Fix:
OPEN
member2.php
FIND if (!isset($perpage) or $perpage>200) { //max of 200, per several users requestsREPLACE WITH if (!$perpage or $perpage>200) { //max of 200, per several users requestsThat should fix it
Paul
Sat 30th Nov '02, 1:55am
Originally posted by Stadler
Try the following Fix:
OPEN
member2.php
FIND if (!isset($perpage) or $perpage>200) { //max of 200, per several users requestsREPLACE WITH if (!$perpage or $perpage>200) { //max of 200, per several users requestsThat should fix it This was a XSS bug fix from 2.2.8 wasn't it? :: searches ::...
Scott MacVicar
Sat 30th Nov '02, 6:12am
Originally posted by LoveShack
This was a XSS bug fix from 2.2.8 wasn't it? :: searches ::... indeed it was, the $pagenumber check should have been changed to incorporate a check for 0.
Ian
Sat 30th Nov '02, 3:51pm
Originally posted by Stadler
Try the following Fix:
OPEN
member2.php
FIND if (!isset($perpage) or $perpage>200) { //max of 200, per several users requestsREPLACE WITH if (!$perpage or $perpage>200) { //max of 200, per several users requestsThat should fix itI tried it, it indeed does fix it.
Scott MacVicar
Sat 30th Nov '02, 4:55pm
Originally posted by Ian
I tried it, it indeed does fix it. We will be going for
if ($perpage==0 or $perpage>200) {
Chris M
Sun 1st Dec '02, 8:09am
Originally posted by Scott MacVicar
We will be going for
if ($perpage==0 or $perpage>200) { So what is the Official Fix?
Satan
Scott MacVicar
Sun 1st Dec '02, 11:03am
Originally posted by hellsatan
So what is the Official Fix?
Satan what i posted is the official fix
Erwin
Sun 1st Dec '02, 8:36pm
Originally posted by Scott MacVicar
what i posted is the official fix Just confirming - remove the intval line, and change ! to =0 - is that right?
Chen
Mon 2nd Dec '02, 3:05am
Originally posted by Erwin
Just confirming - remove the intval line, and change ! to =0 - is that right? No, keep the intval() and just change it to $perpage == 0.
DWZ
Mon 2nd Dec '02, 4:20am
augh! too confusing!
can somone post a "find this code in x.php" and "replace it with this code" type post...
Chen
Mon 2nd Dec '02, 4:25am
Originally posted by DWZ
augh! too confusing!
can somone post a "find this code in x.php" and "replace it with this code" type post... Find this code in member2.php:
if (!isset($perpage) or $perpage>200) {
And replace it with:
if ($perpage == 0 or $perpage > 200) {
CeleronXT
Mon 2nd Dec '02, 6:33am
Originally posted by Chen
Find this code in member2.php:
if (!isset($perpage) or $perpage>200) {
And replace it with:
if ($perpage == 0 or $perpage > 200) { Thanks for the fix.
Applied.
DWZ
Mon 2nd Dec '02, 10:09am
great, thanks for that Chen :)
Erwin
Tue 3rd Dec '02, 9:05pm
Yeah, thanks. :)
Chris M
Fri 6th Dec '02, 3:26pm
Thanks Chen:)
Satan
Kohhal
Tue 10th Dec '02, 1:06pm
Muchos grassyass :D
vBulletin® v3.8.0 Beta 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.