Commit Graph

17 Commits

Author SHA1 Message Date
Michal Čihař
21b8b7d0e7 Honor false return value
Issue #12755

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-11-30 12:43:14 +01:00
osaid
b8a9b0f30d Share code for getting temporary directory
Changed Encoding.php and File.php.

Fixes #12514

Signed-off-by: Osaid <osaid.nasir@gmail.com>
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-11-28 12:12:59 +01:00
Michal Čihař
df66e4fa08 Share code for handling uploaded file
There is no need to duplicate the incomplete logic in several places.

Issue #12514, #12690

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-11-28 12:05:59 +01:00
Michal Čihař
c3401ec878 Merge branch 'QA_4_6-security' into master-security 2016-07-12 12:50:54 +02:00
Michal Čihař
0d57c09bd5 Do not allow symlinks in UploadDir
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-07-12 12:50:36 +02:00
Michal Čihař
1a71b8502e Use null for non existing error
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 18:54:33 +02:00
Michal Čihař
3dc44fd2fc Consistently return Message object as an error
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 18:30:57 +02:00
Michal Čihař
33cd6f3270 Add missing docs
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 18:24:14 +02:00
Michal Čihař
32d360ece7 Check for fopen return value
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 18:20:41 +02:00
Michal Čihař
0b27b843eb We should use bytes for file length
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 18:03:38 +02:00
Michal Čihař
d4fdb95619 Adjust SHP file import to new code
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 17:59:42 +02:00
Michal Čihař
e408163aed Improve performance of zip file import
Avoid doing copies for every import chunk, rather use mb_strcut which
allows us to parse stream by bytes, but doesn't cut multibyte chars.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 17:17:28 +02:00
Michal Čihař
b4d53c1970 Bring back move uploaded file logic from old import code
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 17:09:40 +02:00
Michal Čihař
b54e5b0c4b Use File class for file imports
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-04-11 17:09:40 +02:00
Michal Čihař
0c34cb60a0 Merge branch 'QA_4_5' into QA_4_6 2016-02-12 13:47:04 +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
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