summaryrefslogtreecommitdiffstats
path: root/kio
diff options
context:
space:
mode:
Diffstat (limited to 'kio')
-rw-r--r--kio/kio/ktar.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/kio/kio/ktar.cpp b/kio/kio/ktar.cpp
index 0d508329a..0b77fff52 100644
--- a/kio/kio/ktar.cpp
+++ b/kio/kio/ktar.cpp
@@ -101,7 +101,7 @@ KTar::KTar( const TQString& filename, const TQString & _mimetype )
if ( fourthByte == 4 )
mimetype = "application/x-zip";
}
- else if ( firstByte == '\xFD' && secondByte == '7' && thirdByte == 'z' )
+ else if ( firstByte == 0xfd && secondByte == '7' && thirdByte == 'z' )
{
unsigned char fourthByte = file.getch();
unsigned char fifthByte = file.getch();
@@ -109,6 +109,12 @@ KTar::KTar( const TQString& filename, const TQString & _mimetype )
if ( fourthByte == 'X' && fifthByte == 'Z' && sixthByte == 0x00 )
mimetype = "application/x-xz";
}
+ else if ( firstByte == 0x5d && secondByte == 0x00 && thirdByte == 0x00 )
+ {
+ unsigned char fourthByte = file.getch();
+ if ( fourthByte == 0x80 )
+ mimetype = "application/x-lzma";
+ }
}
file.close();
}