aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--index.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/index.php b/index.php
index d88f471c..b65bfb7c 100644
--- a/index.php
+++ b/index.php
@@ -1695,7 +1695,11 @@ function importFile()
1695 { 1695 {
1696 $attr=$m[1]; $value=$m[2]; 1696 $attr=$m[1]; $value=$m[2];
1697 if ($attr=='HREF') $link['url']=html_entity_decode($value,ENT_QUOTES,'UTF-8'); 1697 if ($attr=='HREF') $link['url']=html_entity_decode($value,ENT_QUOTES,'UTF-8');
1698 elseif ($attr=='ADD_DATE') $raw_add_date=intval($value); 1698 elseif ($attr=='ADD_DATE')
1699 {
1700 $raw_add_date=intval($value);
1701 if ($raw_add_date>30000000000) $raw_add_date/=1000; //If larger than year 2920, then was likely stored in milliseconds instead of seconds
1702 }
1699 elseif ($attr=='PRIVATE') $link['private']=($value=='0'?0:1); 1703 elseif ($attr=='PRIVATE') $link['private']=($value=='0'?0:1);
1700 elseif ($attr=='TAGS') $link['tags']=html_entity_decode(str_replace(',',' ',$value),ENT_QUOTES,'UTF-8'); 1704 elseif ($attr=='TAGS') $link['tags']=html_entity_decode(str_replace(',',' ',$value),ENT_QUOTES,'UTF-8');
1701 } 1705 }