Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > MISCELLANEOUS > Archives > Bug Report 1.4.x

Post Reply
 
Thread Tools
  #1  
Old 07-07-2005, 01:24 PM
sapphirecat Offline
forum loafer
 
Join Date: Apr 2005
Location: KJHW
Posts: 7
Second password recovery bug

I apologize if there's been a release since 1.4.1 which fixes this--1.4.1 was the last one I noticed was out.

admin/index.php line 87 reads:
Code:
    if(sql_query($query))
That should be "mysql_query" instead! Otherwise there's a database error with no error message, and I guess nothing happens.

I worked around it by uploading a modified admin/index.php that didn't require the correct password, logged in, set a new password, and put the original (but fixed) PHP back.
__________________
......:: sapphirecat
Reply With Quote
  #2  
Old 07-07-2005, 07:21 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
thanks!!

sql_query is a defined function in includes/functions.php but it should be used as it was there. Thank you for bug report.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #3  
Old 07-08-2005, 12:05 PM
sapphirecat Offline
forum loafer
 
Join Date: Apr 2005
Location: KJHW
Posts: 7
So the correct fix is to keep sql_query() as such, and instead throw out the if(...) around it and the else { ... } block? Because sql_query() is already killing us on failure and not returning anything to test?
__________________
......:: sapphirecat
Reply With Quote
  #4  
Old 07-08-2005, 12:35 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
the solution is as you mentioned. sql_query function is for somewhere else.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 12:23 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs