• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版58acbd909d8478cd483bcdde763287c155f6f49b (tree)
时间2007-09-18 23:29:30
作者henoheno <henoheno>
Commiterhenoheno

Log Message

preg_replace('/[\r\n]+/', , $str) before output table cell

更改概述

差异

--- a/plugin/tracker.inc.php
+++ b/plugin/tracker.inc.php
@@ -1,6 +1,6 @@
11 <?php
22 // PukiWiki - Yet another WikiWikiWeb clone
3-// $Id: tracker.inc.php,v 1.55 2007-09-18 14:01:20 henoheno Exp $
3+// $Id: tracker.inc.php,v 1.56 2007-09-18 14:29:30 henoheno Exp $
44 // Copyright (C) 2003-2005, 2007 PukiWiki Developers Team
55 // License: GPL v2 or (at your option) any later version
66 //
@@ -302,7 +302,7 @@ class Tracker_field
302302
303303 function format_cell($str)
304304 {
305- return $str;
305+ return preg_replace('/[\r\n]+/', '', $str);
306306 }
307307
308308 // Compare key for Tracker_list->sort()
@@ -349,7 +349,7 @@ class Tracker_field_title extends Tracker_field_text
349349 function format_cell($str)
350350 {
351351 make_heading($str);
352- return $str;
352+ return parent::format_cell($str);
353353 }
354354 }
355355
@@ -369,7 +369,7 @@ class Tracker_field_textarea extends Tracker_field
369369
370370 function format_cell($str)
371371 {
372- $str = preg_replace('/[\r\n]+/', '', $str);
372+ $str = parent::format_cell($str);
373373 if (! empty($this->values[2]) && strlen($str) > ($this->values[2] + 3)) {
374374 $str = mb_substr($str, 0, $this->values[2]) . '...';
375375 }