ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 6673


Ignore:
Timestamp:
Apr 20, 2008, 7:15:32 AM (14 years ago)
Author:
ebihara
Message:

OpenPNE_URL部分をルーズに取得するようにした

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/work/ebihara/prj_sns_cmd/public_html/cmd/openpne/pc_page_fh_diary.js

    r6672 r6673  
    11function url2cmd(url)
    22{
    3     if (!url.match(/target_c_diary_id=([a-zA-Z0-9_\-]+)/)) {
     3    if (!url.match(/(https?:\/\/[a-zA-Z0-9_\-\/.,:;~@=+$%#!\()]+)\/?\?(?:[a-zA-Z0-9_\-\/.,:;~?@=+$%#!\()]|&)*&target_c_diary_id=([a-zA-Z0-9_\-]+)/)) {
    44        pne_url2a(url);
    55        return;
    66    }
    7     var target_c_diary_id = RegExp.$1;
     7    var openpne_url = RegExp.$1;
     8    var target_c_diary_id = RegExp.$2;
    89
    9     var xml_url = "./?m=pc&a=page_fh_diary_output_xml&target_c_diary_id=" + target_c_diary_id;
     10    var xml_url = openpne_url + "?m=pc&a=page_fh_diary_output_xml&target_c_diary_id=" + target_c_diary_id;
    1011    new Ajax.Request(xml_url, {
    1112        asynchronous : false ,
Note: See TracChangeset for help on using the changeset viewer.