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

Opened 11 years ago

Closed 11 years ago

#1168 closed defect (fixed)

<CMDタグの srcに jp.youtube.comなど.が入っていると <cmd src形式が作動しない

Reported by: tejimaa Owned by: ogawa
Priority: major Milestone: OpenPNE2.10beta2
Component: pne-cmd Version:
Keywords: Cc:

Description (last modified by tejimaa)

$regexp = '/&lt;cmd\s+src=&quot;(\w+)&quot;(?:\s+args=&quot;([a-zA-Z0-9_\-+%]+(,[a-zA-Z0-9_\-+%]+)*)?&quot;)?\s*&gt;/i';

14 $GLOBALS_CMD?type? = $type;

$regexp = '/&lt;cmd\s+src=&quot;([\w\.]+)&quot;(?:\s+args=&quot;([a-zA-Z0-9_\-+%]+(,[a-zA-Z0-9_\-+%]+)*)?&quot;)?\s*&gt;/i';

14 $GLOBALS_CMD?type? = $type;

ではいないか?

OK <cmd src="ppw">
OK <cmd src="youtube" args="QjA5faZF1A8">
NG <cmd src="jp.youtube.com" args="QjA5faZF1A8">
NG <cmd src="www.youtube.com" args="a,b,c">

[\w\.]+ に変えたら全部OKになった。

Change History (5)

comment:1 Changed 11 years ago by tejimaa

Description: modified (diff)

comment:2 Changed 11 years ago by ogawa

Milestone: OpenPNE2.10OpenPNE2.10beta1
Owner: changed from nobody to ogawa
Status: newassigned
Summary: <CMDタグの srcに jp.youtube.comなど.が入っていると <cmd src形式が作動しない。<CMDタグの srcに jp.youtube.comなど.が入っていると <cmd src形式が作動しない
Type: enhancementdefect

comment:3 Changed 11 years ago by ogawa

Milestone: OpenPNE2.10beta1OpenPNE2.10beta2

comment:4 Changed 11 years ago by ogawa

r4331 にて対応。

comment:5 Changed 11 years ago by ogawa

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.