[geeklog-jp commit] r538 - in trunk/plugins/themedit: . admin

Back to archive index

codes****@googl***** codes****@googl*****
2008年 9月 14日 (日) 09:38:02 JST


Author: mystralkk
Date: Sat Sep 13 17:37:19 2008
New Revision: 538

Modified:
    trunk/plugins/themedit/admin/readme.html
    trunk/plugins/themedit/admin/readme_ja.html
    trunk/plugins/themedit/config.php
    trunk/plugins/themedit/functions.inc

Log:
PHP-4.xでエラーになるのを避けるため、htmlentities(), html_entity_decode()を 
使用しないように変更。

Modified: trunk/plugins/themedit/admin/readme.html
==============================================================================
--- trunk/plugins/themedit/admin/readme.html	(original)
+++ trunk/plugins/themedit/admin/readme.html	Sat Sep 13 17:37:19 2008
@@ -58,9 +58,9 @@
  </head>

  <body>
-<h1>Geeklog Theme Editor Plugin [v1.1.1]</h1>
+<h1>Geeklog Theme Editor Plugin [v1.1.2]</h1>
  by mystral-kk [<a  
href="mailto:geekl****@mystr*****">geekl****@mystr*****</a>]<br>
-Aug 18, 2008
+Sep 14, 2008

  <h2>Table of Contents</h2>

@@ -83,6 +83,10 @@
  <table border="1">
  	<tr>
  		<th>Date</th><th>Version</th><th>Description</th>
+	</tr>
+	<tr>
+		<td>Sep 14, 2008</td><td>1.1.2</td><td><span class="fix">[Fix]</span>  
Upgraded to work well with PHP-4.x by not using htmlentities() and  
html_entity_decode() functions.</td>
+	</tr>
  	</tr>
  	<tr>
  		<td>Aug 18, 2008</td><td>1.1.1</td><td><span class="fix">[Fix]</span>  
Upgraded to properly work with DokuWiki plugin.</td>

Modified: trunk/plugins/themedit/admin/readme_ja.html
==============================================================================
--- trunk/plugins/themedit/admin/readme_ja.html	(original)
+++ trunk/plugins/themedit/admin/readme_ja.html	Sat Sep 13 17:37:19 2008
@@ -57,9 +57,9 @@
  	</style>
  </head>

-<h1>Geeklogテーマエディタプラグイン [v1.1.1]</h1>
+<h1>Geeklogテーマエディタプラグイン [v1.1.2]</h1>
  by mystral-kk [<a  
href="mailto:geekl****@mystr*****">geekl****@mystr*****</a>]<br>
-2008年 8月18日
+2008年 9月14日

  <h2>目次</h2>

@@ -82,6 +82,9 @@
  <table border="1">
  	<tr>
  		<th>日付</th><th>バージョン</th><th>説明</th>
+	</tr>
+	<tr>
+		<td>2008年 9月14日</td><td>1.1.2</td><td><span class="new">[Fix]</span>  
PHP-4.xで起こるエラーを避けるため、htmlentities(), html_entity_decode()関数 
を使用しないようにしました。</td>
  	</tr>
  	<tr>
  		<td>2008年 8月18日</td><td>1.1.1</td><td><span class="new">[Fix]</span>  
DokuWikiプラグインと協調できるように修正しました。</td>

Modified: trunk/plugins/themedit/config.php
==============================================================================
--- trunk/plugins/themedit/config.php	(original)
+++ trunk/plugins/themedit/config.php	Sat Sep 13 17:37:19 2008
@@ -48,7 +48,7 @@
  /**
  * Plugin info
  */
-$_THM_CONF['pi_version'] = '1.1.1';						// Plugin Version
+$_THM_CONF['pi_version'] = '1.1.2';						// Plugin Version
  $_THM_CONF['gl_version'] = '1.4.0';						// GL Version plugin for
  $_THM_CONF['pi_url']     = 'http://mystral-kk.net/';	// Plugin Homepage


Modified: trunk/plugins/themedit/functions.inc
==============================================================================
--- trunk/plugins/themedit/functions.inc	(original)
+++ trunk/plugins/themedit/functions.inc	Sat Sep 13 17:37:19 2008
@@ -265,8 +265,12 @@
  function THM_esc($str) {
  	global $LANG_CHARSET;
  	
-	$str = html_entity_decode($str, ENT_QUOTES, $LANG_CHARSET);
-	return htmlentities($str, ENT_QUOTES, $LANG_CHARSET);
+	$str = str_replace(
+		array('&lt;', '&gt;', '&amp;', '&quot;', '&#039;'),
+		array(   '<',    '>',     '&',      '"',      "'"),
+		$str
+	);
+	return htmlspecialchars($str, ENT_QUOTES, $LANG_CHARSET);
  }

  function THM_str($index) {




Geeklogjp-changes メーリングリストの案内
Back to archive index