Merge branch 'QA_4_6'
This commit is contained in:
commit
e3e51db544
@ -24,6 +24,7 @@ phpMyAdmin - ChangeLog
|
||||
- issue Include X-Robots-Tag header in responses
|
||||
- issue Enfornce numeric field length when creating table
|
||||
- issue Fixed invalid Content-Length in some HTTP responses
|
||||
- issue #12394 Create view should require a view name
|
||||
|
||||
4.6.3 (2016-06-23)
|
||||
- issue #12249 Fixed cookie path on Windows
|
||||
|
||||
@ -38,6 +38,20 @@ if (empty($sql_query)) {
|
||||
$sql_query = '';
|
||||
}
|
||||
|
||||
// View name is a compulsory field
|
||||
if (isset($_REQUEST['view']['name'])
|
||||
&& empty($_REQUEST['view']['name'])
|
||||
) {
|
||||
$message = PMA\libraries\Message::error(__('View name can not be empty'));
|
||||
$response = PMA\libraries\Response::getInstance();
|
||||
$response->addJSON(
|
||||
'message',
|
||||
$message
|
||||
);
|
||||
$response->setRequestStatus(false);
|
||||
exit;
|
||||
}
|
||||
|
||||
if (isset($_REQUEST['createview']) || isset($_REQUEST['alterview'])) {
|
||||
/**
|
||||
* Creates the view
|
||||
|
||||
Loading…
Reference in New Issue
Block a user