Home > 杂谈视野 > Site Changes 07.01.13

Site Changes 07.01.13

January 13th, 2007

前两天wordpress2.0.6刚出不久就有feedburner bug,现在又有hacker发现2.0.6的SQL注入漏洞。幸亏没升级,今天直接升到wordpress2.0.7RC1算了。

    WordPress2.0.7RC1 changes:

  • 1. worked around a PHP bug for PHP4 < 4.4.3 and PHP5 < 5.1.4 with register_globals ON that could lead to SQL injection or other security breaches
  • 2. Feeds should properly show 304 Not Modified headers (a.k.a. the FeedBurner bug) instead of mismatched 200/304 headers
  • 3. Backport of another 304 Not Modified fix from trunk (Etag mismatch on certain hosts would cause 200 OK and content to always be served, a waste of bandwidth)
  • 4. Deleting WP Pages no longer gives an “Are You Sure?” prompt
  • 5. After deleting a WP Page, you are properly redirected to the Edit Pages screen
  • 6. Sending an image at original size in IE no longer adds an incorrect “height” attribute

由于是周末,于是又换了个主题,个人比较喜欢这个由iqwolf做的主题unnamed1.0

site changes:

在空间enable了shell,虽然不太熟悉其命令,但是实用性实在诱人;
wordpress升级至2.0.7RC1,虽然据评价2.1的beta还是不错的,但是可能涉及到插件兼容的问题,暂时不升级,过些日子再说;

  • 更换了主题unnamed1.0
  • 增加了插件sidebar widgets
  • 重新定义了高亮代码插件coolcode,直接支持code标签。见andy的coolcode修正版
  • 去除了原来authimage插件,换成了anti-spam
  • 通过插件自定义了random post;
  • 进行了其它一些调整。

code测试

< ?php
//截取中文字符串
function mysubstr($str, $start, $len) {
$tmpstr = "";
$strlen = $start + $len;
for($i = 0; $i < $strlen; $i++) {
if(ord(substr($str, $i, 1)) > 0xa0) {
$tmpstr .= substr($str, $i, 2);
$i++;
} else
$tmpstr .= substr($str, $i, 1);
}
return $tmpstr;
}
?>

杂谈视野 ,

  1. No comments yet.
  1. No trackbacks yet.