Commit Graph

20 Commits

Author SHA1 Message Date
Michal Čihař
0664d15cef Simplify checking for ajax request
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-15 09:11:06 +01:00
Michal Čihař
4e9a342794 Register shutdown directly on singleton instance
This avoids additional call in the shutdown handler.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-15 09:06:02 +01:00
Michal Čihař
f914fcaba5 Share code for cascading ajax flag
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-15 08:54:45 +01:00
Michal Čihař
b56f101039 Remove is_ajax_request global
We already have the same information on Response object, so let's use it
from there.

Issue #11731

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-07 17:54:34 +01:00
Michal Čihař
2d2bc08d6c Remove obsolete comment
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-11-28 14:25:47 +01:00
Arrizal Amin
62cf19dbd7 remove unused property "$_isAjaxPage"
Signed-off-by: Arrizal Amin <arrizalamin@gmail.com>
2016-11-20 22:26:24 +07:00
Michal Čihař
3546bed47e Avoid using mb_strlen for checking whether string is empty
Using strlen produces same results here, just way faster.

Fixes #12397

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-09-16 10:29:21 +02:00
Michal Čihař
3e91fe55fb Merge branch 'QA_4_6-security' into master-security 2016-07-28 10:55:12 +02:00
Michal Čihař
8dcaae5f83 Do not try to wrap output in case response handling is disabled
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-07-28 10:50:35 +02:00
Michal Čihař
dce94f229f More consistency for URL::getCommon
Now URL::getCommon always returns HTML encoded string, if you want
unencded one, use URL::getCommonRaw. This makes it easier to review the
code if uses correct variant.

Also I've fixed several wrong uses of the HTML encoded variant in
Location header.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-06-17 12:44:29 +02:00
Michal Čihař
b8d5d6e9b2 Merge branch 'QA_4_6' 2016-03-09 14:08:03 +01:00
Michal Čihař
8310691341 Add PHP 5.5.0 error codes as well
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-03-09 14:07:25 +01:00
Michal Čihař
f01b3b7ddd Merge branch 'QA_4_6' 2016-03-09 11:59:36 +01:00
Michal Čihař
c964633278 Provide diagnostics for JSON encoding errors
Issue #11705

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-03-09 11:43:06 +01:00
Madhura Jayaratne
37cf811f36 Add missing parameter in doc comment
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
2016-02-19 22:41:18 +11:00
Michal Čihař
c2b41b829a Wrap header() and headers_sent() in response
This allows us to test the code without using runkit. Currenly only
AuthenticationHttp is migrated to new code, but others will follow.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 19:49:05 +01:00
Michal Čihař
ed96969ff9 Merge branch 'QA_4_5' 2016-01-28 09:23:27 +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
6f4676cdfc Merge remote-tracking branch 'origin/master' into useNamespaces_master 2015-10-04 18:04:49 +02:00
Hugues Peccatte
0761fb1801 Rename classes files.
Rename classes.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-01 21:30:21 +02:00