浏览代码

Back out something that shouldn't be here (yet?) and leave behind a comment explaining that htmlencoded is currently ignored

pdontthink 18 年之前
父节点
当前提交
bfd60b6729
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      functions/options.php

+ 2 - 2
functions/options.php

@@ -370,8 +370,8 @@ class SquirrelOption {
      * @return string html formated selection box
      */
     function createWidget_StrList() {
-
-        return addSelect('new_' . $this->name, $this->possible_values, $this->value, TRUE, $this->aExtraAttribs, !$this->htmlencoded) . htmlspecialchars($this->trailing_text);
+//FIXME: Currently, $this->htmlencoded is ignored here -- was removed when changing to template-based output; a fix is available as part of proposed centralized sanitizing patch
+        return addSelect('new_' . $this->name, $this->possible_values, $this->value, TRUE, $this->aExtraAttribs) . htmlspecialchars($this->trailing_text);
 
     }