From: Andrew Dolgov Date: Sun, 18 Jan 2009 09:54:11 +0000 (+0100) Subject: pref-labels, save: do not escape unnecessary newline X-Git-Tag: 1.3.0~91 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=9c5e85fe9afe7176a54aee4466467c0ae5433f36;p=tt-rss.git pref-labels, save: do not escape unnecessary newline --- diff --git a/modules/pref-labels.php b/modules/pref-labels.php index d9208c44..3690464e 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; diff --git a/prefs.js b/prefs.js index 12a95249..846540a5 100644 --- a/prefs.js +++ b/prefs.js @@ -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}); } } }