creditcard validation - why does nit not fail for 7 digits?
Luhn's algorithm, as described in Wikipedia, works for any number of digits. It will detect any single digit change and most swaps.

As for an internet website which accepts credit card numbers of the wrong length - the blame should be on the designers of the website who neglected to enforce this restriction, not on Luhn's algorithm, which performs as advertized.