mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
Merge pull request #3149 from khobbits/patch-notes
Stop double escaping the notes post variable.
This commit is contained in:
@@ -14,7 +14,7 @@ $status = 'error';
|
|||||||
$message = 'unknown error';
|
$message = 'unknown error';
|
||||||
|
|
||||||
$device_id = mres($_POST['device_id']);
|
$device_id = mres($_POST['device_id']);
|
||||||
$notes = mres($_POST['notes']);
|
$notes = $_POST['notes'];
|
||||||
|
|
||||||
if (isset($notes) && (dbUpdate(array('notes' => $notes), 'devices', 'device_id = ?', array($device_id)))) {
|
if (isset($notes) && (dbUpdate(array('notes' => $notes), 'devices', 'device_id = ?', array($device_id)))) {
|
||||||
$status = 'ok';
|
$status = 'ok';
|
||||||
|
|||||||
Reference in New Issue
Block a user