summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-10-09 13:25:58 +0400
committerAndrew Dolgov <[email protected]>2009-10-09 13:25:58 +0400
commita6c78e0a650817abbbf7ba276d7129a889b4836f (patch)
tree2d69196bd4666f1d55e578e6a153ad67f7a04c3f
parent78935092b540278e388749b7b0620fce62098fc9 (diff)
feed editor: truncate linked-to feed title
-rw-r--r--modules/pref-feeds.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php
index b0269243e..6b510bc9d 100644
--- a/modules/pref-feeds.php
+++ b/modules/pref-feeds.php
@@ -224,8 +224,11 @@
} else {
$is_selected = "";
}
+
+ $title = truncate_string(htmlspecialchars($tmp_line["title"]), 40);
+
printf("<option $is_selected value='%d'>%s</option>",
- $tmp_line["id"], $tmp_line["title"]);
+ $tmp_line["id"], $title);
}
print "</select>";