This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, 6.0 has been updated
via 1f9e65549ece232af288fc478e8dbe3534a7b22b (commit)
from 5426ccaddd7fdf7de5bdda93719c6dc6f2d96f89 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=1f9e65549ece232af288fc478e8dbe3534a7b22b
commit 1f9e65549ece232af288fc478e8dbe3534a7b22b
Author: Franck Villaume <[email protected]>
Date: Thu Jan 28 22:59:11 2016 +0100
rss utils, add missing licence, fix link, fix deprecated php function
diff --git a/src/www/export/rss_utils.inc b/src/www/export/rss_utils.inc
index 151cfca..9451f89 100644
--- a/src/www/export/rss_utils.inc
+++ b/src/www/export/rss_utils.inc
@@ -1,14 +1,26 @@
<?php
/**
- *
- * SourceForge Exports: RSS support module
- *
- *
- * SourceForge: Breaking Down the Barriers to Open Source Development
- * Copyright 1999-2001 (c) VA Linux Systems
- * http://sourceforge.net
- *
- */
+ * FusionForge Exports: RSS support module
+ *
+ * Copyright 1999-2001 (c) VA Linux Systems
+ * Copyright 2015, Franck Villaume - TrivialDev
+ * http://fusionforge.org/
+ *
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
require_once('../env.inc.php');
require_once $gfcommon.'include/pre.php'; // Initial db and session
library, opens session
@@ -63,9 +75,9 @@ function rss_dump_project_result_set
($res,$title,$desription='',$callback=0) {
}
print " <item>\n";
print "
<title>".htmlspecialchars($row['group_name'])."</title>\n";
- print " <link>".util_make_url_g
($row['unix_group_name'],$row['group_id'])."</link>\n";
+ print "
<link>".util_make_base_url().util_make_url_g($row['unix_group_name'],$row['group_id'])."</link>\n";
print " <description>";
- print ereg_replace(" *\r*\n *","
",rss_description($row['short_description']));
+ print preg_replace('[\n\r]','
',rss_description($row['short_description']));
print $addendum;
print "</description>\n";
print " </item>\n";
-----------------------------------------------------------------------
Summary of changes:
src/www/export/rss_utils.inc | 34 +++++++++++++++++++++++-----------
1 file changed, 23 insertions(+), 11 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits