Skip to content

Commit

Permalink
Revert "Item13897: Fixed a bug affecting test_roundtrip."
Browse files Browse the repository at this point in the history
This reverts commit 36ab951.

Attachment name is not required - documented as representing all
attachments.
  • Loading branch information
gac410 committed Jan 14, 2016
1 parent 36ab951 commit 9a3dac3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions UnitTestContrib/test/unit/AddressTests.pm
Expand Up @@ -32,6 +32,7 @@ my %test_roundtrip_range = (
],
tompaths => [
undef,
['attachment'],
[ 'attachment', 'Attachment' ],
[ 'attachment', 'Attach.ent' ],
[ 'attachment', 'Atta.h.ent' ],
Expand Down
4 changes: 2 additions & 2 deletions core/lib/Foswiki/Address.pm
Expand Up @@ -1448,8 +1448,8 @@ sub isValid {
and scalar( @{ $this->{tompath} } ) )
if DEBUG;
ASSERT(
not( $this->{tompath}->[0]
and $this->{tompath}->[0] eq 'attachment' )
not( $this->{topmath}->[0]
and $this->{topmath}->[0] eq 'attachment' )
) if DEBUG;
ASSERT( $pathtypes{ $this->{tompath}->[0] } ) if DEBUG;
$this->{type} =
Expand Down

0 comments on commit 9a3dac3

Please sign in to comment.