Commit Graph

48 Commits

Author SHA1 Message Date
Michal Čihař
27fd0a88f6 Include language parameter when loading js messages
This forces reloading javscript messages when changing language.

Fixes #13633

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-09-04 10:17:13 +02:00
Michal Čihař
3dfa8d751f Pass server parameter to the CSS backend
Issue #13507

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-07-21 14:15:52 +02:00
Michal Čihař
b143069be0 Simplify generating URL for php generated js
Use URL::getCommon() instead of constructing URL manually.

This fixes regression introduced by e317e481ac.

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-06-08 16:13:56 +02:00
Michal Čihař
e317e481ac Remove not needed parameters
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-06-08 15:47:07 +02:00
Michal Čihař
c27d47ed75 Use Referrer-Policy header to specify referrer policy
The referrer policy in Content-Security-Policy is deprecated.

Fixes #13033

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-02-27 11:42:21 +01:00
Michal Čihař
dc3ef3ce7f Try harder to honor LoginCookieValidity setting
Even when it is lower than session.gc_maxlifetime we try to keepalive
the session by AJAX.

Fixes #11231

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-02-14 16:29:55 +01:00
Michal Čihař
8633f44db0 Remove code for PMA_TEST_HEADERS
It's no longer necessary.

Issue #12079

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-01-08 10:58:19 +01:00
Michal Čihař
5f9ce26268 Add jQuery Migrate to support some older code
Issue #12447

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-21 14:19:37 +01:00
Michal Čihař
a0a0a04404 Update jQuery UI to 1.12.1
Issue #12447

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-21 14:14:36 +01:00
Michal Čihař
c1b803efe6 Update jQuery to 3.1.1
Issue #12447

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-21 14:03:35 +01:00
Michal Čihař
945e615253 Merge branch 'QA_4_6' 2016-12-19 15:23:31 +01:00
Michal Čihař
7d361806c3 Share code for rendering custom header and footer
Fixes #12802

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-19 15:20:12 +01:00
Michal Čihař
66ac1a3053 Remove unused variable safari_browser
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-13 17:30:00 +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ř
eb0dc51800 Use https link
Issue #12758

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-11-30 12:19:12 +01:00
Michal Čihař
519bddaa09 Merge branch 'QA_4_6' 2016-11-28 13:53:55 +01:00
Jees K Denny
48ebdf1852 Add missing end of meta tags in header
Issue #12746

Signed-off-by: Jees K Denny <jees.jees5@gmail.com>
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-11-28 13:51:41 +01:00
Michal Čihař
6145a84642 Use username for password change strength indicator
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-11-10 10:46:20 +01:00
Michal Čihař
ae6eb57652 Remove browser specific class from root element
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-10-04 11:56:11 +02: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ř
0ce8cd7919 Merge branch 'QA_4_6' 2016-07-12 10:28:28 +02:00
Michal Čihař
b8b1bdd77e Include X-Robots-Tag header in responses
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-07-12 10:28:03 +02:00
Michal Čihař
2f4950828e Update referrer <meta> to match current standards
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-06-20 10:47:30 +02:00
Michal Čihař
22b19b5d69 Merge branch 'QA_4_6-security' into master-security 2016-06-20 10:45:26 +02:00
Michal Čihař
1e5716cb96 Add referrer CSP and <meta> tag
This avoids leaking Referer header in modern browsers.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-06-20 09:41:06 +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ř
b71aeefa3a Disable sending referer
We don't use it and this can help us get rid of url.php once the browser
support is good enough (as usual, there is no support in IE and broken
support in Edge right now).

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-03-01 16:09:51 +01:00
Michal Čihař
8b518460fb Merge pull request #11996 from 007durgesh219/Issue#11989
Issue#11989, #11988, #11990
2016-02-22 16:10:46 +01:00
Michal Čihař
aa077eee78 Merge pull request #11963 from Achilles-96/Issue-11865
Fixes #11865 partially
2016-02-22 13:00:55 +01:00
Achilles-96
4073e4676f Fixes #11865 partially-Added support for shortcuts
Signed-off-by: Raghuram Vadapalli <raghuram.vadapalli@research.iiit.ac.in>
2016-02-22 17:06:23 +05:30
Durgesh
6650f7b07d Refactor text sanitization and javascript escaping, Issue #11989, #11988
Signed-off-by: Durgesh <007durgesh219@gmail.com>
2016-02-22 14:45:19 +05:30
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ř
729abb0f3c Merge branch 'QA_4_5' into QA_4_6 2016-02-15 08:51:40 +01:00
Michal Čihař
8f17813535 Visualization now works even on HTTPS
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 15:18:49 +01:00
Michal Čihař
41ab867fb7 Use builtin OpenLayers OSM setup
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 15:07:47 +01:00
Michal Čihař
c01e32b3c5 Remove PmaAbsoluteUri from javascript params, not used there
Issue #11412

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-02-03 14:33:42 +01:00
Marc Delisle
7aed59efd2 Substitute these not not operators with their real meaning
Signed-off-by: Marc Delisle <marc@infomarc.info>
2016-01-18 17:55:56 -05:00
Michal Čihař
39771f44c0 Simplify code
For ages we set $GLOBALS['lang'] to language code, so it's safe to use
it here.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-12 14:50:13 +01:00
Michal Čihař
c6939e9e50 Update jQuery UI to 1.11.4
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-08 13:06:11 +01:00
Michal Čihař
5f3875f0c1 Upgrade jQuery to 2.1.4
Issue #11833

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-01-08 12:33:22 +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
Achilles-96
f72864cb2b Fixes issue 11504
Signed-off-by: Achilles-96 <raghuram.vadapalli@research.iiit.ac.in>
2015-11-29 15:44:56 +05:30
Hugues Peccatte
8ac9634c7a Make PHPCS happy.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-10-24 13:30:22 +02:00
Hugues Peccatte
70acefd180 Replace Response calls by short calls.
Add missing require.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-05 23:39:02 +02:00
Hugues Peccatte
8db5465556 Move libraries/navigation classes into a namespace.
Rename libraries/navigation/Nodes as nodes.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-04 22:53:00 +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
0761fb1801 Rename classes files.
Rename classes.

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
2015-09-01 21:30:21 +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