Login
User Name:

Password:



Register
Forgot your password?
Template missing: ADMIN_MEMBER_DELETE
Aug 30, 2010, 9:45 pm
By Kline
Making Messes
Aug 5, 2010, 8:46 pm
By Conner
Personal CSS substitution
Aug 5, 2010, 7:00 pm
By Conner
No preview on post edits?
Aug 5, 2010, 11:17 am
By Conner
Video BBCode Buttons
Aug 3, 2010, 11:12 am
By Conner
QSF Portal 1.5
Author: QSF Portal Team
Submitted by: Samson
Ashlander 3 for QSFP 1.4.6
Author: Samson
Submitted by: Samson
QSF Portal 1.4.6
Author: QSF Portal Team
Submitted by: Samson
Ashlander 3 for QSFP 1.4.5
Author: Samson
Submitted by: Samson
QSF Portal 1.4.5
Author: QSF Portal Team
Submitted by: Samson
CommonCrawl, Yandex, Bing

Members: 0
Guests: 0
Stats
Files
Topics
Posts
Members
Newest Member
31
197
873
59
norby500
Affiliates
Arthmoor Quicksilver Forums
View our reviews on Hot Scripts
» QSF Portal » QSF Portal Project » Bugs » [Bug:Files] Search option in ...
Forum Rules | Mark all | Recent Posts

[Bug:Files] Search option in files menu generates infinite loop.
< Newer Topic :: Older Topic > Fixed in 1.4.6

Pages:<< prev 1 next >>
Post is unread #1 Feb 25, 2010, 8:19 pm
Go to the bottom of the page Go to the top of the page


Samson
Administrator
GroupAdministrators
Posts315
JoinedOct 9, 2006
WWW

If a member (or search bot) triggers the search link from the files menu, the server will return a PHP error saying it ran out of memory. Apparently nobody uses that function outside of MudBytes so it never got noticed until today when I was checking error logs on Yahoo's Site Explorer function. It's a ridiculously easy fix:

Index: C:/Code Repositories/QSFP Branch/qsfportal/func/files.php
===================================================================
--- C:/Code Repositories/QSFP Branch/qsfportal/func/files.php	(revision 360)
+++ C:/Code Repositories/QSFP Branch/qsfportal/func/files.php	(revision 361)
@@ -1348,7 +1348,7 @@
 
 	function nestedSelect($cid = 0, $nest = 0, $selectArray = array())
 	{
-		$cats = $this->db->query( 'SELECT fcat_name, fcat_id, fcat_parent FROM %pfile_categories WHERE fcat_parent=%d', $cid );
+		$cats = $this->db->query( 'SELECT fcat_name, fcat_id, fcat_parent FROM %pfile_categories WHERE fcat_parent=%d AND fcat_id != 0', $cid );
 		if($cats && $this->db->num_rows($cats) <= 0 )
 			return '';
.........................
PDNS-Admin | Sandbox | Arthmoor MUD Hosting Services | The Truth About Medievia: A Saga of Code Theft.

"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984
       
Pages:<< prev 1 next >>