[geeklog-hg] geeklog: Fixed a bug where topic names containing quotes get cut...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun Jan 12 08:11:27 EST 2014
changeset 9417:87c461af8e12
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/87c461af8e12
user: Kenji ITO <mystralkk at gmail.com>
date: Sun Jan 12 21:59:11 2014 +0900
description:
Fixed a bug where topic names containing quotes get cut when trying to re-edit them (bug #0001691)
diffstat:
public_html/admin/topic.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 1f379def9cd9 -r 87c461af8e12 public_html/admin/topic.php
--- a/public_html/admin/topic.php Sun Jan 12 17:40:43 2014 +0900
+++ b/public_html/admin/topic.php Sun Jan 12 21:59:11 2014 +0900
@@ -202,7 +202,7 @@
$topic_templates->set_var('default_limit', $_CONF['limitnews']);
$topic_templates->set_var('lang_defaultis', $LANG27[16]);
$topic_templates->set_var('lang_topicname', $LANG27[3]);
- $topic_templates->set_var('topic_name', stripslashes ($A['topic']));
+ $topic_templates->set_var('topic_name', htmlspecialchars(stripslashes($A['topic']), ENT_QUOTES, COM_getEncodingt()));
if (empty($A['tid'])) {
$A['imageurl'] = '/images/topics/';
}
More information about the geeklog-cvs
mailing list