Michal Čihař
308c9d7951
Simplify Response object handling
...
- always use use and short name
- avoid calling getInstance() several times in one script
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-07 18:17:59 +01:00
Michal Čihař
dad93483c1
Merge branch 'QA_4_6'
2016-11-10 11:08:36 +01:00
Deven Bansod
f14cffdbe7
Properly escape strings in MySQL statement values
...
Use *_real_escape string functions provided by connectors to escape strings while exporting
Fix #12453
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
Conflicts:
libraries/server_privileges.lib.php
2016-10-29 10:45:12 +05:30
Michal Čihař
75a5fde46d
Use secure.php.net for PHP documentation links
...
This avoids unnecessary redirect on the way (I still think this website
setup is weird, but that's all I can do about it).
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-10-18 11:13:24 +02:00
Michal Čihař
6e3d38a1d3
Use strlen for calculating string index
...
Issue #12397
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-09-16 10:18:46 +02:00
Michal Čihař
e52ceecb3d
Ensure font size is integer, we do further calculations with it
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-09-05 18:46:01 +02:00
Michal Čihař
ec7a4cfc82
Merge branches 'QA_4_6-security' and 'master' into master-security
2016-07-22 16:51:22 +02:00
Michal Čihař
835958af31
Merge branch 'QA_4_6' into QA_4_6-security
2016-07-22 16:50:12 +02:00
Michal Čihař
7de035439d
Merge branch 'QA_4_6'
2016-07-22 16:42:58 +02:00
Michal Čihař
61150656df
Fixed invalid Content-Length in some HTTP responses
...
Use strlen for calculating HTTP response size, we're interested in bytes
not utf-8 chars.
Issue #12397
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-07-22 16:41:51 +02:00
Michal Čihař
c2ca1c8c22
Merge branch 'QA_4_6-security' into master-security
2016-07-12 16:58:46 +02:00
Michal Čihař
80b03a4f16
Ensure page number is integer
...
Even if somebody decides to change configuration storage structure.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-07-12 16:57:35 +02:00
Michal Čihař
95f2d15b4f
Merge branch 'QA_4_6'
2016-05-17 10:12:04 +02:00
Michal Čihař
3771852471
Use https when linking to php.net
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-05-17 10:10:13 +02:00
Durgesh
0b64827930
Refactored url parmeters generating, Issue #11990
...
Signed-off-by: Durgesh <007durgesh219@gmail.com>
2016-02-22 14:36:41 +05:30
Michal Čihař
f5d0da0f31
The class_exists uses autoloading no need to do it
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-22 08:05:49 +01:00
Michal Čihař
5a58f81776
Use autloading for checking TCPDF existance
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-22 08:03:19 +01:00
Michal Čihař
5042b65398
Merge branch 'QA_4_5' into QA_4_6
2016-02-12 10:45:43 +01:00
Michal Čihař
4534a90b80
Silent warnings when checking for file existance
...
Another occurences of file_exists which can be limited by open_basedir.
Issue #11940
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-12 10:38:47 +01:00
Michal Čihař
e4dfb159c4
Do not use global constant with class
...
As this doesn't play well together. This fixes the PDF schema export.
Fixes #11849
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-22 15:24:48 +01:00
Marc Delisle
68f8adfd84
No letters for logical operators
...
https://github.com/dseguy/clearPHP/blob/master/rules/no-letter-logical.md
Signed-off-by: Marc Delisle <marc@infomarc.info>
2016-01-05 17:17:43 -05:00
Michal Čihař
ebda156932
The shared method has to be protected, not private
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-05 16:15:17 +01:00
Michal Čihař
5801e7a019
Share _getPaperSizeArray code
...
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-05 15:57:34 +01:00
Michal Čihař
ca59f5046c
Use new contructor for Group() objects
...
This safes us next calls to setName and setText.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-05 15:26:52 +01:00
Michal Čihař
4975ef2bc2
Use new constructor for Item() objects
...
This allows to directly set name and text.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-05 15:04:02 +01:00
Michal Čihař
55b317c699
Remove /*overload*/ prefix from mb_* calls
...
I believe this was temporary flagging to see which code is migrated and
can be safely removed now.
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-04 16:35:28 +01:00
Marc Delisle
49302ec644
Remove dead code
...
Signed-off-by: Marc Delisle <marc@infomarc.info>
2016-01-04 07:40:11 -05:00
Marc Delisle
3f97698382
Fix typo
...
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-12-13 08:25:39 -05:00
Marc Delisle
5a6d9c010b
Undefined property
...
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-12-11 09:27:31 -05:00
Marc Delisle
2607023281
Remove some unnecessary string concatenations
...
https://github.com/dseguy/clearPHP/blob/master/rules/no-unnecessary-string-concatenation.md
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-12-03 11:00:01 -05:00
Marc Delisle
9ee3931c09
Remove some unnecessary string concatenations
...
https://github.com/dseguy/clearPHP/blob/master/rules/no-unnecessary-string-concatenation.md
Signed-off-by: Marc Delisle <marc@infomarc.info>
2015-12-03 10:43:10 -05:00
Hugues Peccatte
154a942145
Remove side effects in declaration files.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-10-27 18:56:40 +01:00
Madhura Jayaratne
abffc62a02
Merge branch 'QA_4_5'
2015-10-27 19:52:05 +11:00
Madhura Jayaratne
ac97a97cb8
Fix #11610 , #11611
...
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-10-27 19:45:39 +11:00
Hugues Peccatte
c752c01309
Merge branch 'master' into useNamespaces_master
2015-09-27 20:50:19 +02:00
Hugues Peccatte
0f80756fe6
Use pre-increment when possible.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-26 23:12:09 +02:00
Hugues Peccatte
330c92ddf7
Set namespace on properties classes.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-12 22:16:23 +02:00
Hugues Peccatte
7185d61649
Set uses instead of absolute namespace.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-12 15:43:39 +02:00
Hugues Peccatte
fa801c507f
Set namespace on plugins classes.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-12 12:51:45 +02:00
Hugues Peccatte
178a6edd38
Add namespace on part of plugins classes.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-05 00:33:42 +02:00
Hugues Peccatte
7f8f34e89d
Remove classes require_once.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-01 21:30:22 +02:00
Hugues Peccatte
f0ba28fc1d
Set namespace on Advisor, Config, Console and Util classes.
...
Set namespace on DbQbe.
Set namespace to 'DbSearch'.
Split Advisor.class.php file.
Change Advisor namespace.
Rename DbQbe class and file.
Set namespace on DisplayResults.
Set namespace on Error.
Use namespace for ErrorHandler.
Add class autoloader.
Change ErrorHandler filename.
Remove some require.
Update Config namespace path.
Update PMA_Util to PMA\libraries\Util.
Rename Font and File classes files.
Use namespace for Footer.
Set namespace in all libraries classes.
Namespace OutputBuffering.
Export SubPartition.
Rename Partition file.
Namespace PDF.
Namespace RecentFavoriteTable.
Replace PMA_Response by Response and PMA_Message by Message.
Update uses and calls.
Fix unit tests.
Fix SqlParser autoload.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-01 21:22:52 +02:00
Madhura Jayaratne
6eb6786506
Standardize to sentence case
...
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-08-26 16:57:42 +10:00
Hugues Peccatte
17fb74d2cf
Make PHPCS happy.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-08-25 16:20:31 +02:00
Atul Pratap Singh
917add1528
Merge pull request #11370 from gzzhanghao/unittest
...
Recover test coverage
2015-08-25 13:30:44 +05:30
Hugues Peccatte
bd707b871d
Update PHPDoc.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-08-24 23:34:50 +02:00
Jason
59b11954f4
Recover tests for PMA_Table and rename sGetStatusInfo to getStatusInfo
...
Signed-off-by: Jason <jason.daurus@gmail.com>
2015-08-12 16:48:40 +08:00
Madhura Jayaratne
ca1c424e9d
Add missing docs for parameters
...
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2015-08-11 12:24:31 +05:30
Hugues Peccatte
9b0e7652a5
Make PHPCS happy.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-08-10 22:22:51 +02:00
Hugues Peccatte
2f7aecc12a
Make PHPCS happy.
...
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-08-10 21:27:51 +02:00