]> git.wh0rd.org Git - tt-rss.git/commitdiff
pref-labels, save: do not escape unnecessary newline
authorAndrew Dolgov <fox@bah.spb.su>
Sun, 18 Jan 2009 09:54:11 +0000 (10:54 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sun, 18 Jan 2009 09:54:11 +0000 (10:54 +0100)
modules/pref-labels.php
prefs.js

index d9208c44497fd9b6314621f6ef8e88444964a3e1..3690464e79a39b61fca7bbf4f563d45e588e9bd5 100644 (file)
@@ -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;
index 12a95249e935433ec047ab07656ba67c4da0eae0..846540a5c87b0e7e48f374b8d9913aada1288bec 100644 (file)
--- 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});
                                        }
                                }
                        }