Update contact_edit.php
This commit is contained in:
@@ -114,7 +114,7 @@
|
|||||||
$array['contacts'][0]['contact_uuid'] = $contact_uuid;
|
$array['contacts'][0]['contact_uuid'] = $contact_uuid;
|
||||||
|
|
||||||
message::add($text['message-add']);
|
message::add($text['message-add']);
|
||||||
$location = "contact_edit.php?id=".$contact_uuid;
|
$location = "contact_edit.php?id=".urlencode($contact_uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
//update the contact
|
//update the contact
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
$array['contacts'][0]['contact_uuid'] = $contact_uuid;
|
$array['contacts'][0]['contact_uuid'] = $contact_uuid;
|
||||||
|
|
||||||
message::add($text['message-update']);
|
message::add($text['message-update']);
|
||||||
$location = "contact_edit.php?id=".escape($contact_uuid);
|
$location = "contact_edit.php?id=".urlencode($contact_uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
//create array
|
//create array
|
||||||
@@ -188,7 +188,7 @@
|
|||||||
|
|
||||||
//handle redirect
|
//handle redirect
|
||||||
if ($_POST['submit'] == $text['button-add']) {
|
if ($_POST['submit'] == $text['button-add']) {
|
||||||
$location = "contact_edit.php?id=".escape($contact_uuid);
|
$location = "contact_edit.php?id=".urlencode($contact_uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
//redirect the browser
|
//redirect the browser
|
||||||
|
|||||||
Reference in New Issue
Block a user