diff options
author | Andrew Dolgov <[email protected]> | 2009-01-18 10:54:11 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-01-18 10:54:11 +0100 |
commit | 9c5e85fe9afe7176a54aee4466467c0ae5433f36 (patch) | |
tree | 0f575c73f0d9257f9f279fbfbe2e48cb8406f0d5 | |
parent | d8f9cd6d5b24227291825cdff8981cd15393ac56 (diff) |
pref-labels, save: do not escape unnecessary newline
-rw-r--r-- | modules/pref-labels.php | 4 | ||||
-rw-r--r-- | prefs.js | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/modules/pref-labels.php b/modules/pref-labels.php index d9208c444..3690464e7 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -6,7 +6,7 @@ if ($subop == "save") { $id = db_escape_string($_REQUEST["id"]); - $caption = trim(db_escape_string($_REQUEST["value"])); + $caption = db_escape_string(trim($_REQUEST["value"])); db_query($link, "BEGIN"); @@ -32,7 +32,7 @@ AND action_id = 7 AND owner_uid = " . $_SESSION["uid"]); - print $caption; + print $_REQUEST["value"]; } } else { print $old_caption; @@ -151,7 +151,8 @@ function labellist_callback() { var id = elems[i].id.replace("LILT-", ""); new Ajax.InPlaceEditor(elems[i], - 'backend.php?op=pref-labels&subop=save&id=' + id); + 'backend.php?op=pref-labels&subop=save&id=' + id, + {cols: 20, rows: 1}); } } } |