• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • phpPgAdmin
  • Bugs

executeScript ignore querries when ; is on a single line

Brought to you by: ioguix, xzilla
This project can now be found here.
  • Summary
  • Files
  • Reviews
  • Support
  • Wiki
  • Mailing Lists
  • Tickets ▾
    • Bugs
    • Feature Requests
  • News
  • Discussion
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

  • 3.5.5
  • 5.0.1
  • 5.0.2
  • 5.0.3
  • 5.0.4
  • 5.1
  • CVS
  • GIT

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#448 executeScript ignore querries when ; is on a single line

5.1
open
nobody
None
5
2015-03-06
2015-02-24
Nirgal Vourgère
No

That problem was originally reported at:
https://bugs.debian.org/762378

Basically, there seems to be a problem in classes/database/Postgres.php, in function exec script.

If the ';' is alone on a line, the test
if (strspn($subline, " \t\n\r") != strlen($subline))
is false and the whole querry is ignored.

Please refer to the original bug report for examples.

This is more easy to observe the problem if you upload a sql file via sql.php

Discussion

  • Nirgal Vourgère

    Nirgal Vourgère - 2015-03-06

    A fix is available at https://github.com/phppgadmin/phppgadmin/pull/27/

     
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
MongoDB Logo MongoDB