Skip to content

Commit

Permalink
修正泄露路径的漏洞
Browse files Browse the repository at this point in the history
  • Loading branch information
joyqi committed Mar 10, 2014
1 parent a7e4a8e commit 0d30d33
Show file tree
Hide file tree
Showing 101 changed files with 99 additions and 45 deletions.
1 change: 1 addition & 0 deletions usr/plugins/HelloWorld/Plugin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Hello World
*
Expand Down
21 changes: 0 additions & 21 deletions var/IXR/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,6 @@
Made available under the Artistic License: http://www.opensource.org/licenses/artistic-license.php
*/

/** IXR值 */
require_once 'IXR/Value.php';

/** IXR消息 */
require_once 'IXR/Message.php';

/** IXR请求体 */
require_once 'IXR/Request.php';

/** IXR错误 */
require_once 'IXR/Error.php';

/** IXR日期 */
require_once 'IXR/Date.php';

/** IXR Base64编码 */
require_once 'IXR/Base64.php';

/** Typecho_Http_Client */
require_once 'Typecho/Http/Client.php';

/**
* IXR客户端
* reload by typecho team(http://www.typecho.org)
Expand Down
4 changes: 1 addition & 3 deletions var/IXR/ClientMulticall.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/*
IXR - The Inutio XML-RPC Library - (c) Incutio Ltd 2002
Version 1.61 - Simon Willison, 11th July 2003 (htmlentities -> htmlspecialchars)
Expand All @@ -7,9 +8,6 @@
Made available under the Artistic License: http://www.opensource.org/licenses/artistic-license.php
*/

/** IXR_Clinet */
require_once 'IXR/Clinet.php';

/**
* IXR客户端
*
Expand Down
1 change: 1 addition & 0 deletions var/IXR/Exception.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/*
IXR - The Inutio XML-RPC Library - (c) Incutio Ltd 2002
Version 1.61 - Simon Willison, 11th July 2003 (htmlentities -> htmlspecialchars)
Expand Down
4 changes: 1 addition & 3 deletions var/IXR/IntrospectionServer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/*
IXR - The Inutio XML-RPC Library - (c) Incutio Ltd 2002
Version 1.61 - Simon Willison, 11th July 2003 (htmlentities -> htmlspecialchars)
Expand All @@ -7,9 +8,6 @@
Made available under the Artistic License: http://www.opensource.org/licenses/artistic-license.php
*/

/** IXR_Server */
require_once 'IXR/Server.php';

/**
* IXR服务器
*
Expand Down
18 changes: 0 additions & 18 deletions var/IXR/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,6 @@
Made available under the Artistic License: http://www.opensource.org/licenses/artistic-license.php
*/

/** IXR值 */
require_once 'IXR/Value.php';

/** IXR消息 */
require_once 'IXR/Message.php';

/** IXR请求体 */
require_once 'IXR/Request.php';

/** IXR错误 */
require_once 'IXR/Error.php';

/** IXR日期 */
require_once 'IXR/Date.php';

/** IXR Base64编码 */
require_once 'IXR/Base64.php';

/**
* IXR服务器
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Db/Adapter/Exception.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Db/Adapter/Mysql.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Db/Adapter/Pdo.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Db/Adapter/Pdo/Mysql.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Db/Adapter/Pdo/Pgsql.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Db/Adapter/Pdo/SQLite.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Db/Adapter/Pgsql.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Db/Adapter/SQLite.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Db/Exception.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Db/Query/Exception.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Http/Client/Adapter/Curl.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* CURL适配器
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Http/Client/Adapter/Socket.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Socket适配器
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Http/Client/Exception.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Plugin/Exception.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Router/Exception.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Widget/Exception.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Widget/Helper/Form.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 表单处理帮手
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Widget/Helper/Form/Element.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 表单元素抽象帮手
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Widget/Helper/Form/Element/Checkbox.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 多选框帮手
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Widget/Helper/Form/Element/Fake.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 虚拟域帮手类
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Widget/Helper/Form/Element/Hidden.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 隐藏域帮手类
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Widget/Helper/Form/Element/Password.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 密码输入表单项帮手
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Widget/Helper/Form/Element/Radio.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 单选框帮手
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Widget/Helper/Form/Element/Select.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 下拉选择框帮手
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Widget/Helper/Form/Element/Submit.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 提交按钮表单项帮手
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Widget/Helper/Form/Element/Text.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 文字输入表单项帮手
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Widget/Helper/Form/Element/Textarea.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 多行文字域帮手
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Widget/Helper/PageNavigator/Box.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Typecho/Widget/Helper/PageNavigator/Classic.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Abstract.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 纯数据抽象组件
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Abstract/Comments.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Abstract/Contents.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Abstract/Metas.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 描述性数据
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Abstract/Options.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 全局选项
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Abstract/Users.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 用户抽象组件
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Ajax.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 异步调用组件
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Archive.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Comments/Admin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Comments/Archive.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 评论归档
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Comments/Edit.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Comments/Ping.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 回响归档
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Comments/Recent.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* Typecho Blog Platform
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Contents/Attachment/Admin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 文件管理列表
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Contents/Attachment/Edit.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 编辑文章
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Contents/Attachment/Related.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 文章相关文件
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Contents/Attachment/Unattached.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 没有关联的文件
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Contents/Page/Admin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 独立页面管理列表
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Contents/Page/Edit.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 编辑页面
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Contents/Page/List.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 独立页面列表
*
Expand Down
1 change: 1 addition & 0 deletions var/Widget/Contents/Post/Admin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
/**
* 文章管理列表
*
Expand Down
Loading

0 comments on commit 0d30d33

Please sign in to comment.