#49 connectionID missing in mysql_real_escape_string() call

Next_Version
closed-fixed
5
2006-07-25
2006-06-10
Anonymous
No

In the functions qstr() of the drivers mysql and
mysqlt, the function mysql_real_escape_string() was
called without connectionID. This causes a lot of
errors because the function tries to connect the
database with default parameters which certainly will fail.

replace this call
mysql_real_escape_string($string)
with this one
mysql_real_escape_string($string, $this->connectionId)
and everything works as expected.

Best Regards
Matthias

Discussion

  • Mark Dickenson

    Mark Dickenson - 2006-07-25
    • milestone: --> Next_Version
    • status: open --> closed-fixed
     
  • Mark Dickenson

    Mark Dickenson - 2006-07-25

    Logged In: YES
    user_id=752816

    Thanks

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks