History log of /web-bugs/include/query.php (Results 1 – 25 of 48)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 2e6915b6 28-Dec-2020 Kevin Reinders <30635447+GreeenPeppper@users.noreply.github.com>

Fix #80550: bug search: Nonsensical "the following words were ignored:" w/ trailing space

We `trim()` that input.

Closes GH-88.


# 257c114b 18-Sep-2019 Christoph M. Becker

Fix #78558: Information Exposure Through an Error Message

We certainly should not display these details to anybody. It would
make sense to show that during development, and maybe to dev

Fix #78558: Information Exposure Through an Error Message

We certainly should not display these details to anybody. It would
make sense to show that during development, and maybe to developers.

show more ...


# ce9c82af 18-Sep-2019 Rasmus Lerdorf

Check for passed in arrays


# 9d47b05f 22-May-2019 Peter Kokot

Convert all tabs to spaces


# 35463d9f 05-May-2019 Peter Kokot

Fix #77971: Can't access other than 1st page of advanced bug search


# 5cd2630a 24-Dec-2018 Peter Kokot

Add dependency injection container

This patch introduces a dependency injection container for the PHP bug
tracker application. Container deals with the creation of all service
classe

Add dependency injection container

This patch introduces a dependency injection container for the PHP bug
tracker application. Container deals with the creation of all service
classes and additionally provides retrieving of configuration parameters.
Service classes are used everywhere in the app - from accessing database
to uploading files. Configuration parameters include infrastructure
configuration (database credentials...) and application level
configuration (directories locations...).

Container is compatible with the PSR-11 container interface defined
so it is simple to quickly understand its usage. Advanced features
such as autowiring are not included in this phase.

show more ...


# 14f8c07a 14-Dec-2018 Peter Kokot

Refactor PDO wrapper

Some considerations were raised on the mailing list that this PHP
application doesn't need a PDO wrapper at all.

Changes:
- ::fetchRow() method removed

Refactor PDO wrapper

Some considerations were raised on the mailing list that this PHP
application doesn't need a PDO wrapper at all.

Changes:
- ::fetchRow() method removed in favor of the vanilla PDOStatement::fetch()
- ::fetchAll() override removed in favor of the vanilla
PDOStatement::fetchAll()
- ::fetchCol() removed since it is not used and is only a wrapper for
the PDOStatement::fetchColumn()
- PDO fetch_style synced accross the app. When no fetch style is passed
the default PDO::FETCH_ASSOC is used as set when connecting to db.
- Remove Database::escape() method
The custom ::escape() method is a wrapper around PDO::quote() which
additionally trims leading and trailing quotes from the string. All
this should ideally be done via prepared statements only, except where
we can and need to use PDO::quote() this step can be done on the given
string or variable at hand directly.
- Remove escapeSQL() function
The escapeSQL function is a wrapper around the PDO::quote() and is
using $dbh from the global scope which is not testable nor good practice
further on. Removed and refactored into only PDO::quote() usages on
required places.
- Remove ::fetchOne() method
The fetchOne() method is a simple wrapper around the PDOStatement::fetch()
method with very minor tweaks so the usage can be simplified even more.
The PDOStatement::fetch(\PDO::FETCH_NUM)[0] will always return either a
result from the database column or when row is empty a null.
- Probably this should be refactored to the database tables respected
repositories further on.
- Remove PDO wrapper
The app's current goal is to lean on a vanilla PDO wrapper only.
Current set of features also don't require additional functionality
and extending PDO to a wrapper or create a database abstraction layer
yet.

show more ...


# bae5fa6c 14-Dec-2018 Peter Kokot

Trim trailing whitespaces


# 9b248f9e 10-Dec-2018 Peter Kokot

Refactor get_pseudo_packages() to repository class

Changes:
- get_pseudo_packages() function is moved to its own repository class.
- Database::queryAll() removed since it is not used

Refactor get_pseudo_packages() to repository class

Changes:
- get_pseudo_packages() function is moved to its own repository class.
- Database::queryAll() removed since it is not used and the method
arguments don't match the number of used arguments anymore
- Project types configuration is moved to repository class for now.
- Some unused items removed
- Some template changes and show_project_options() helper function
integrated in the view layer directly since it is used in a simplified
way.

show more ...


# a06f85b0 24-Oct-2018 Peter Kokot

Refactor long array() syntax to short []

Since site is using PHP 5.4+ already, the longer `array()` syntax can be
refactored to shorter `[]`. Also code is already using short array
s

Refactor long array() syntax to short []

Since site is using PHP 5.4+ already, the longer `array()` syntax can be
refactored to shorter `[]`. Also code is already using short array
syntax on some places.

show more ...


# 180dccfe 17-Oct-2018 Peter Kokot

Trim trailing whitespace


# 23298a12 17-Jul-2018 Rasmus Lerdorf

New bugs.php.net code


# e0bb3932 24-Jul-2017 Andreas Heigl

Fixes an issue with a missing whitespace

As @johannes spotted the query didn't add a whitespace so that it might
get added right to the preceding one without ans whitespace.


# 6c3fa2f4 09-May-2015 Andreas Heigl

Adds possibility to search for commenter-email

THis commit enables us to search for bugs that have been commented using
a certain email-address


# 5719e9e8 13-Feb-2013 Johannes Schlüter

Fix bug search


# 6710f40d 13-Feb-2013 Johannes Schlüter

Rename table, a bit more consistent


# 7da3ecbd 13-Feb-2013 Johannes Schlüter

Improce patch/pull search


# 1cc2e658 08-Feb-2013 Johannes Schlüter

Add search suppot or bugs with pull requets

Searching for bugs with patch OR pull request currently isn't
possible, aöö searches use AND.


# dcc9d0e3 18-Jan-2013 Ferenc Kovacs

Fixed bug #64020 (reject negative values for the limit value)


# 8e3acb14 28-Jul-2012 Ferenc Kovacs

adding random sort order option


# 4e4fb08f 04-Feb-2012 Jakub Vrana

Allow ' at ' in author e-mail, return empty result for invalid e-mails


# c3110c33 27-Jan-2012 Rasmus Lerdorf

- The end of an era - switch "Bogus" to "Not a bug" by popular demand
- Switch back to master
- Add site_method to make it easier to install on non-ssl test sites


# 17cd2501 12-Oct-2011 Felipe Pena

- Missing project type information


# cc16c494 12-Oct-2011 Felipe Pena

- Added option to search for project (php, pecl)
- Restored behavior to send mail to package maintainers instead of pecl lists


# 9e3082dc 30-Aug-2011 Hannes Magnusson

There is no such status anymore, its a bug type


12