Check added for symlink - to avoid symlinks in the source path
[biaweb2.git] / biawebdocumenttree.hpp
index 447a5c7..53023f1 100644 (file)
@@ -237,6 +237,7 @@ namespace biaweb {
         // rss feed
         std::unique_ptr<RSSFeed> feed (new RSSFeed ());
         feed.get()->set_pub_date (index.get()->get_creation_date());
+        feed.get()->set_title (this->get_title());
 
         // iterate through the documents and generate the document
         for (Document doc : this->docs) {
@@ -308,8 +309,8 @@ namespace biaweb {
                     
                     this->add_child (doctree.get());
                 }
-                // add the regular files as documents in the tree
-                else if (fsitem.is_regular_file ()) {
+                // add the regular files as documents in the tree and not symlink
+                else if (fsitem.is_regular_file () && !fsitem.is_symlink()) {
                     // if it is an index file (specially named as index 
                     // or index.md or whatever) directly add 
                     // the contents to the summary of the Doctree