diff --git a/libraries/URL.php b/libraries/URL.php index 4a01e87b9a..5bc6dbd1ba 100644 --- a/libraries/URL.php +++ b/libraries/URL.php @@ -220,10 +220,6 @@ class URL $params['collation_connection'] = $GLOBALS['collation_connection']; } - if (isset($_SESSION[' PMA_token '])) { - $params['token'] = $_SESSION[' PMA_token ']; - } - if (empty($params)) { return ''; } diff --git a/test/classes/AdvisorTest.php b/test/classes/AdvisorTest.php index a08991e4c2..451538582c 100644 --- a/test/classes/AdvisorTest.php +++ b/test/classes/AdvisorTest.php @@ -171,7 +171,7 @@ class AdvisorTest extends PMATestCase 'name' => 'Variable', 'issue' => 'issue', 'recommendation' => 'Recommend status_var' + 'lang=en&filter=status_var">status_var' ), null, ), diff --git a/test/classes/DbSearchTest.php b/test/classes/DbSearchTest.php index de6f395512..71b5efa881 100644 --- a/test/classes/DbSearchTest.php +++ b/test/classes/DbSearchTest.php @@ -164,23 +164,23 @@ class DbSearchTest extends PMATestCase . 'href="sql.php?db=pma&table' . '=table1&goto=db_sql.php&pos=0&is_js_confirmed=0&' . 'sql_query=column1&server=0&lang=en&' - . 'collation_connection=utf-8&token=token" ' + . 'collation_connection=utf-8" ' . 'onclick="loadResult(\'sql.php?db=pma&table=table1&goto=' . 'db_sql.php&pos=0&is_js_confirmed=0&sql_query=column1' . '&server=0&lang=en&collation_connection=utf-8' - . '&token=token\',\'table1\',\'?db=pma' + . '\',\'table1\',\'?db=pma' . '&table=table1&server=0&lang=en' - . '&collation_connection=utf-8&token=token\');' + . '&collation_connection=utf-8\');' . 'return false;" >Browse
Edit',
@@ -439,7 +438,7 @@ class DisplayResultsTest extends PMATestCase
. '
Edit' . "\n"
. '
Copy',
'`customer`.`id` = 1',
@@ -502,7 +501,7 @@ class DisplayResultsTest extends PMATestCase
. '
Copy' . "\n"
. '
Delete',
'DELETE FROM `Data`.`customer` WHERE `customer`.`id` = 1',
@@ -568,8 +566,7 @@ class DisplayResultsTest extends PMATestCase
. '+1&message_to_show=The+row+has+been+deleted&goto=sql.php'
. '%3Fdb%3DData%26table%3Dcustomer%26sql_query%3DSELECT%2B%252A%2B'
. 'FROM%2B%2560customer%2560%26message_to_show%3DThe%2Brow%2Bhas%2B'
- . 'been%2Bdeleted%26goto%3Dtbl_structure.php%26token%3Df597309d3a06'
- . '6c3c81a6cb015a79636d&token=f597309d3a066c3c81a6cb015a79636d" '
+ . 'been%2Bdeleted%26goto%3Dtbl_structure.php" '
. 'class="delete_row requireConfirm">
Edit',
@@ -666,7 +660,7 @@ class DisplayResultsTest extends PMATestCase
. ''
+ . '_action=update" >'
. '
Edit' . "\n"
. '
Copy' . "\n"
. '
Edit',
@@ -739,8 +729,7 @@ class DisplayResultsTest extends PMATestCase
. 'message_to_show=The+row+has+been+deleted&goto=sql.php%3Fdb'
. '%3Ddata%26table%3Dnew%26sql_query%3DSELECT%2B%252A%2BFROM%2B%25'
. '60new%2560%26message_to_show%3DThe%2Brow%2Bhas%2Bbeen%2Bdeleted'
- . '%26goto%3Dtbl_structure.php%26token%3Dae4c6d18375f446dfa068420c'
- . '1f6a4e8&token=ae4c6d18375f446dfa068420c1f6a4e8" class="delete'
+ . '%26goto%3Dtbl_structure.php" class="delete'
. '_row requireConfirm">
Delete'
. "\n" . '
Copy' . "\n"
. '
Edit' . "\n"
. '
Edit',
@@ -874,8 +860,7 @@ class DisplayResultsTest extends PMATestCase
. 'row+has+been+deleted&goto=sql.php%3Fdb%3Ddata%26table%3Dnew'
. '%26sql_query%3DSELECT%2B%252A%2BFROM%2B%2560new%2560%26message_'
. 'to_show%3DThe%2Brow%2Bhas%2Bbeen%2Bdeleted%26goto%3Dtbl_structure'
- . '.php%26token%3Dae4c6d18375f446dfa068420c1f6a4e8&token='
- . 'ae4c6d18375f446dfa068420c1f6a4e8',
+ . '.php',
array(
'edit_lnk' => 'ur',
'del_lnk' => 'dr',
@@ -893,12 +878,10 @@ class DisplayResultsTest extends PMATestCase
),
'tbl_change.php?db=data&table=new&where_clause=%60new%60.%60'
. 'id%60+%3D+1&clause_is_unique=1&sql_query=SELECT+%2A+FROM+'
- . '%60new%60&goto=sql.php&default_action=update&token='
- . 'ae4c6d18375f446dfa068420c1f6a4e8',
+ . '%60new%60&goto=sql.php&default_action=update',
'tbl_change.php?db=data&table=new&where_clause=%60new%60.%60'
. 'id%60+%3D+1&clause_is_unique=1&sql_query=SELECT+%2A+FROM+'
- . '%60new%60&goto=sql.php&default_action=insert&token='
- . 'ae4c6d18375f446dfa068420c1f6a4e8',
+ . '%60new%60&goto=sql.php&default_action=insert',
'edit_row_anchor',
'
Edit',
@@ -980,7 +963,6 @@ class DisplayResultsTest extends PMATestCase
'db_routines.php?item_name=circumference&db=data'
. '&item_type=FUNCTION&server=0&lang=en'
. '&collation_connection=utf-8'
- . '&token=token'
),
array(
'information_schema',
@@ -995,7 +977,6 @@ class DisplayResultsTest extends PMATestCase
'db_routines.php?item_name=area&db=data'
. '&item_type=PROCEDURE&server=0&lang=en'
. '&collation_connection=utf-8'
- . '&token=token'
),
array(
'information_schema',
@@ -1010,7 +991,6 @@ class DisplayResultsTest extends PMATestCase
. 'rmation_schema%60.%60CHARACTER_SETS%60&db=information_schema'
. '&test_name=value&server=0&lang=en'
. '&collation_connection=utf-8'
- . '&token=token'
)
);
}
@@ -1340,7 +1320,7 @@ class DisplayResultsTest extends PMATestCase
null,
'1001'
+ . '" class="disableAjax">1001'
),
array(
true,
@@ -1355,7 +1335,7 @@ class DisplayResultsTest extends PMATestCase
null,
'0x123456'
+ . '" class="disableAjax">0x123456'
),
array(
true,
@@ -1370,7 +1350,7 @@ class DisplayResultsTest extends PMATestCase
null,
'[BLOB - 4 B]'
+ . '" class="disableAjax">[BLOB - 4 B]'
),
array(
false,
@@ -1493,7 +1473,7 @@ class DisplayResultsTest extends PMATestCase
''
. '

[ take it'
. ' ]