This commit has been accessed 591 times via Git panel.
commit daf4deead9936f5bac8137aa99d5b3260a68c66a
tree 8a489018a90eb4071a3d1dd8e465df1794adf191
parent 761c9e38efa708e494b3e4f90252991cbf98be2d
author Engels Antonio <engels@majcms.org> 1277314209 +0800
committer Engels Antonio <engels@majcms.org> 1277314209 +0800
maj-1.0-20090129-bb.zip
diff --git a/rel.txt b/rel.txt
index d4b6280..105c62b 100644
--- a/rel.txt
+++ b/rel.txt
@@ -1 +1 @@
-20090121
\ No newline at end of file
+20090129
\ No newline at end of file
diff --git a/rss.php b/rss.php
index 855176e..66a124f 100644
--- a/rss.php
+++ b/rss.php
@@ -100,6 +100,10 @@ if (isset($_REQUEST['ver']) and !empty($_REQUEST['ver'])) {
continue;
}
+ if (isset($_REQUEST['cat']) and !empty($_REQUEST['cat']) and !file_exists("data/categories/{$_REQUEST['cat']}")) {
+ continue;
+ }
+
if ($entry_rss_items != "." && $entry_rss_items != ".." && fnmatch("*", $entry_rss_items) && !file_exists("data/items/$entry_rss_items/private.txt")) {
$show_rss_items[] = $entry_rss_items;
}
tree 8a489018a90eb4071a3d1dd8e465df1794adf191
parent 761c9e38efa708e494b3e4f90252991cbf98be2d
author Engels Antonio <engels@majcms.org> 1277314209 +0800
committer Engels Antonio <engels@majcms.org> 1277314209 +0800
maj-1.0-20090129-bb.zip
diff --git a/rel.txt b/rel.txt
index d4b6280..105c62b 100644
--- a/rel.txt
+++ b/rel.txt
@@ -1 +1 @@
-20090121
\ No newline at end of file
+20090129
\ No newline at end of file
diff --git a/rss.php b/rss.php
index 855176e..66a124f 100644
--- a/rss.php
+++ b/rss.php
@@ -100,6 +100,10 @@ if (isset($_REQUEST['ver']) and !empty($_REQUEST['ver'])) {
continue;
}
+ if (isset($_REQUEST['cat']) and !empty($_REQUEST['cat']) and !file_exists("data/categories/{$_REQUEST['cat']}")) {
+ continue;
+ }
+
if ($entry_rss_items != "." && $entry_rss_items != ".." && fnmatch("*", $entry_rss_items) && !file_exists("data/items/$entry_rss_items/private.txt")) {
$show_rss_items[] = $entry_rss_items;
}