Menu

#17 please add stripslashes() in db_read_dum

fixed
None
5
2013-06-11
2001-05-27
Anonymous
No

Hi.
In db_read_dump you can enter a sql-Query. If you give something like
select * from bla where blo>'bla'
then it says something like syntax error:
select * from bla where blo>\'bla\'

changing the line 29 in db_read_dump from

$sql_query = trim($sql_query);

to
$sql_query = trim(stripslashes($sql_query));

solves the Problem.

Just a quickie!

Thanks

Tex

Discussion

  • Loïc Chapeaux

    Loïc Chapeaux - 2001-05-29
    • assigned_to: nobody --> loic1
     
  • Loïc Chapeaux

    Loïc Chapeaux - 2001-05-29

    Logged In: YES
    user_id=144058

    Hi Tex!

    OK, I'll have a look at this. But I have to ensure the
    patch you suggest doesn't "create" a new bug with special
    characters in sql queries.

    Regards,
    Loc

     
  • Paivi

    Paivi - 2001-05-30

    Logged In: YES
    user_id=172248

    i just installed the latest stable and this is the only bug
    i have found.

     
  • Loïc Chapeaux

    Loïc Chapeaux - 2001-05-30
    • status: open --> closed-fixed
     
  • Loïc Chapeaux

    Loïc Chapeaux - 2001-05-30

    Logged In: YES
    user_id=144058

    Fixed in both the CVS trees thanks to Pete.

     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.