ログイン
ユーザ名

パスワード



パスワード紛失

新規登録
参照元情報
参照なし

このフォーラムではゲスト投稿が禁止されています

このフォーラムに新しいトピックを立てることはできません

Action
list-tree ツリー構造順で表示 sort-down 投稿の新しいものから previous 前のトピック next 次のトピック

なし Ccenter 0.89 – Bug in onepass?

First of all I would like to thank Nobuhiro Yasutomi for this great module!

I think I found a bug:

If there is a “+” (plus) in the onepass
you cannot connect to your quest as anonymous.

When you post a quest as anonymous, you receive a link to the quest like this:

URL/modules/ccenter/message.php?id=12&p=+uYSqDsX
The code after “id=” is your quest id
The code after “p=” allow you to see your quest online as anonymous. (onepass)

If the generated code contains a "+" (plus) the connection cannot be achieved (the site asks for identification)

It seems that the user does not receive the confirmation mail too.

It may be necessary to avoid the "+" at the creation of the code?
How to do that?

@+
Z

なし Re: Ccenter 0.89 – Bug in onepass?

Well, where to found "+" in URL string?

Notification email url is encode string (use urlencode function), it will be "...&p=%2BuYSqDsX". Or not encode "+" some php versions?

But there is no need to use "+" or some other graphic chars.
It will be fix following patch.
--- functions.php	15  3月 2009 19:10:29 +0900	1.29
+++ functions.php	30  5月 2009 15:51:12 +0900	
@@ -585,7 +585,7 @@
 }
 
 function cc_onetime_ticket($genseed="mypasswdbasestring") {
-    return substr(base64_encode(pack("H*",md5($genseed.time()))), 0, 8);
+    return substr(preg_replace('/[^a-zA-Z0-9]/', '', base64_encode(pack("H*",md5($genseed.time())))), 0, 8);
 }
 
 function cc_delete_message($msgid) {

Thank you reporting.

list-tree ツリー構造順で表示 sort-down 投稿の新しいものから previous 前のトピック next 次のトピック



条件検索へ
© 2008 MySite Web Service