[ic] Is in Order.pm of IC 4.6.1 a Bug?

jojo@buchonline.net jojo@buchonline.net
Wed, 31 Jan 2001 12:27:10 +0100 (CET)


Hi List,

if I use pgp to encrypt the credit card. It works well. But if I use no
credit card, the empty mv_credit_card_info is encryted and attached
always. I`ve added some logGlobal lines into the Order.pm file and i see

---------snip error.log------
192.168.1.10 XLSuyFeN:192.168.1.10 - [31/Januar/2001:11:58:25 +0100] bol /cgi-bin/bol/sear
ch.html cgi content jojo(1) and jojo2()
192.168.1.10 XLSuyFeN:192.168.1.10 - [31/Januar/2001:12:00:56 +0100] bol /cgi-bin/bol/proc
ess cgi content jojo(1) and jojo2()
192.168.1.10 XLSuyFeN:192.168.1.10 - [31/Januar/2001:12:01:12 +0100] bol /cgi-bin/bol/proc
ess.html cgi content jojo(1) and jojo2()
192.168.1.10 XLSuyFeN:192.168.1.10 - [31/Januar/2001:12:01:13 +0100] bol /cgi-bin/bol/proc
ess.html route1 : card_info ()
192.168.1.10 XLSuyFeN:192.168.1.10 - [31/Januar/2001:12:01:13 +0100] bol /cgi-bin/bol/proc
ess.html pgp_encrypt: body ()
192.168.1.10 XLSuyFeN:192.168.1.10 - [31/Januar/2001:12:01:13 +0100] bol /cgi-bin/bol/proc
ess.html route2 : card_info (-----BEGIN PGP MESSAGE-----
> Version: JockelPGP 0.1
> MessageID: Hi World :-)
> 
> qANQR1DBwE4D2o79lkSOJ1AQA/sFJROsCGz6+37VixoSBn2f9oiJ2d/vX8jQlthc
> khC8NlTlolGv3fjUg9Rlr3hMQv5CtLGINWVLrUqfjjdMa07TRqpdI1PLBBMprYYO
> N7hq5r88p78vu7Il9XGwG59jcyfEW+BNe5O0pjHEGC9+hyB/Scel77fi0K+USenI
> sYFyiAQApsORv4qBELVAr/GyNG6Zww4xqLGtvoT3L41oxbyGdEseDqNsGclvMaHO
> zNdSARgmjqwlbt/8Q6BRwZKRy5FZ9YpsMZTAY+K7ngqMUvkBus8z12Mj54DJQ1NL
> HBGrpcvVAQItKtlXUoabUW4NBWESIVJY/NzIJh3AWkx5dHZ39KTJG7ZWIFFYHl/7
> quXc8Z9+r47Ylc3uanNtzO86/g==
> =/w46
> -----END PGP MESSAGE-----
> )
- - - [31/Januar/2001:12:04:52 +0100] - - STOP server (2950) on signal TERM
---------snip error.log------


A little change in Order.pm like

# diff -u Order.pm.sic Order.pm | less
--- Order.pm.sic        Thu Nov 23 05:59:43 2000
+++ Order.pm    Wed Jan 31 12:21:12 2001
@@ -1476,7 +1476,7 @@
                                                        );
                        }
                }
-               elsif($route->{credit_card} and ! $pre_encrypted) {
+               elsif($route->{credit_card} and ! $pre_encrypted and $::Values->{mv_credit
_card_info}) {
                        $::Values->{mv_credit_card_info} = pgp_encrypt(
                                                                $::Values->{mv_credit_card
_info},
                                                                ($route->{pgp_cc_key} || $
route->{pgp_key}),

 
make the right shop. Here is my error.log

---------snip error.log------
- - - [31/Januar/2001:12:05:01 +0100] - - START server (3047) (UNIX)
192.168.1.10 XLSuyFeN:192.168.1.10 - [31/Januar/2001:12:05:20 +0100] bol /cgi-bin/bol/proc
ess cgi content jojo(1) and jojo2()
192.168.1.10 XLSuyFeN:192.168.1.10 - [31/Januar/2001:12:05:39 +0100] bol /cgi-bin/bol/proc
ess.html cgi content jojo(1) and jojo2()
192.168.1.10 XLSuyFeN:192.168.1.10 - [31/Januar/2001:12:06:03 +0100] bol /cgi-bin/bol/proc
ess cgi content jojo(1) and jojo2()
192.168.1.10 XLSuyFeN:192.168.1.10 - [31/Januar/2001:12:06:30 +0100] bol /cgi-bin/bol/proc
ess.html cgi content jojo(1) and jojo2(4111111111111111)
192.168.1.10 XLSuyFeN:192.168.1.10 - [31/Januar/2001:12:06:30 +0100] bol /cgi-bin/bol/proc
ess.html encrypt_standard_cc: num (4111111111111111) date (1/02) type ()
192.168.1.10 XLSuyFeN:192.168.1.10 - [31/Januar/2001:12:06:30 +0100] bol /cgi-bin/bol/proc
ess.html encrytped content jojo2(visa   4111111111111111        1/02
> )
192.168.1.10 XLSuyFeN:192.168.1.10 - [31/Januar/2001:12:06:30 +0100] bol /cgi-bin/bol/proc
ess.html encrypt_string: string () info(visa    4111111111111111        1/02
> )
192.168.1.10 XLSuyFeN:192.168.1.10 - [31/Januar/2001:12:06:31 +0100] bol /cgi-bin/bol/proc
ess.html route1 : card_info (visa       4111111111111111        1/02
> )
192.168.1.10 XLSuyFeN:192.168.1.10 - [31/Januar/2001:12:06:31 +0100] bol /cgi-bin/bol/proc
ess.html pgp_encrypt: body (visa        4111111111111111        1/02
> )
192.168.1.10 XLSuyFeN:192.168.1.10 - [31/Januar/2001:12:06:31 +0100] bol /cgi-bin/bol/proc
ess.html route2 : card_info (-----BEGIN PGP MESSAGE-----
> Version: Jockelcruncher 0.1
> MessageID: 
> 
> qANQR1DBwE4D2o79lkSOJ1AQA/9y8g8qZ0FAPmS3TeM+uULxVj/OQLcuX37JU16E
> NLXn/0bP+MGrVrEm9xpmFuBKoKjpAghGcDh9NE1KC8EtaNIGuvDu7CBruoiC9SU8
> jST6EUwABUJpGaAMjzv/fp9691lfZgexjEd+2xuGRovlQ3a6CslM/O4OsYQdv/61
> LW+GigP+M7qmWa/g3j79bmM6QA8W0cPRP7y+6dofjIsyv+O97o7VKBWIOMsdtWQr
> eatQ7+Sq120SFJr6yQjCbZyP6wdqXtxd7YQ8K1SAgLmAwcQT4uNXEOAnNWL1DUG8
> sfzX7Ktjtv6auCjKvXrFsagraXXCDB+2BSple1arB/7tJHwBZ9TJK9LnzvgJuTfK
> LOUJIOLgGcEXOuA+bknmQrX91wSr2ZRrHwkFXepM+7Li6HQ=
> =0cou
> -----END PGP MESSAGE-----
> )
---------snip error.log------


If I _have_ a credit_card_info, it will be encrypted. I I _have no_ a
credit_card_info, it will not encrypted an empty string.

Any comments? Mike? Racke?

Thanks!

Joachim


-- 
Hans-Joachim Leidinger
buch online                 jojo@buchonline.net
Munscheidstr. 14            FAX: +49 209 1671441
45886 Gelsenkirchen         FAX: 0209 1671441