Skip to content

Commit f38c4d9

Browse files
Fix icon path support
1 parent 435776c commit f38c4d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extractor/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ void index_file(char *path, char* filename, bool new) {
178178
sprintf(sdr_path, "%s.sdr", full_path);
179179
mkdir(sdr_path, 0755);
180180

181-
if (validIcon) {
182-
Log("Valid icon detected, attempting to extract it");
181+
if (validIcon && strncmp(header.icon, "data:image", strlen("data:image"))) {
182+
Log("Valid BASE64 icon detected, attempting to extract it");
183183
//data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAA
184184
char* fileTypePointer = strchr(header.icon, '/')+1;
185185
char* fileTypeEndPointer = strchr(header.icon, ';');

0 commit comments

Comments
 (0)