• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

ギコナビ


Commit MetaInfo

Revisionf08f0d109f3cbaad54a3dbe76e5d6b4b952dfa8c (tree)
Zeit2009-11-23 22:12:49
Autorh677 <h677>
Commiterh677

Log Message

refs #19657
生キー指定の際に、16進コードのアルファベット部分を変換できない不具合の修正

Ändern Zusammenfassung

Diff

--- a/Trip.pas
+++ b/Trip.pas
@@ -435,7 +435,7 @@ begin
435435 if (Pos(pw[2*i + 0 + 1], '0123456789abcdefABCDEF') > 0) and
436436 (Pos(pw[2*i + 1 + 1], '0123456789abcdefABCDEF') > 0) then begin
437437 convpw := convpw +
438- Char(StrToInt( pw[2*i + 0 + 1] ) shl 4 + StrToInt( pw[2*i + 1 + 1] ));
438+ Char(StrToInt( 'x' + pw[2*i + 0 + 1] ) shl 4 + StrToInt( 'x' + pw[2*i + 1 + 1] ));
439439 end else begin
440440 convpw := '';
441441 Break;
@@ -498,7 +498,10 @@ begin
498498 if pw[ 0 ] = '#' then begin
499499 get_pw_salt(pw, convpw, salt);
500500 end;
501- if Length(convpw) = 8 then begin
501+ if (pw[ 0 ] = '#') and (Length(pw) >= 12) then begin
502+ // «—ˆ‚ÌŠg’£—p
503+ Result := '???';
504+ end else if Length(convpw) = 8 then begin
502505 Result := Copy( crypt_r( PChar(convpw), salt, s ), 4, 100 );
503506 end else begin
504507 // V•ûŽ®