Skip to content

Commit

Permalink
plugin.ref: fix $this->conf['local_dir_mapper']
Browse files Browse the repository at this point in the history
サイト内画像のローカルファイルパス変換テーブルの正規表現の修正
  • Loading branch information
nao-pon committed Aug 23, 2012
1 parent 5eb13bd commit 79b3548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xoops_trust_path/modules/xpwiki/plugin/ref.inc.php
Expand Up @@ -104,7 +104,7 @@ function plugin_ref_init () {
// サイト内画像のローカルファイルパス変換テーブル
$this->conf['local_dir_mapper'] = array(
// xelfinder
'#^.+/([a-zA-Z0-9_-]+)/index\.php(?:/|\?page=)(?:view|tmb(?:/|&s=)\d+)(?:/|&file=)(\d+)/.*?$#'
'#^.+/([a-zA-Z0-9_-]+)/index\.php(?:/|\?page=)(?:view|tmb(?:/|&s=)\d+)(?:/|&file=)(\d+)(?:/|&).*?$#'
=> $this->cont['TRUST_PATH'] . 'uploads/xelfinder/' . rawurlencode(rtrim(substr($this->cont['ROOT_URL'], 7), '/')) . '_$1_$2',
);

Expand Down

0 comments on commit 79b3548

Please sign in to comment.