Revision: 10265
http://sourceforge.net/p/phpwiki/code/10265
Author: vargenau
Date: 2021-02-22 20:47:09 +0000 (Mon, 22 Feb 2021)
Log Message:
-----------
plugin RssFeed: better test boolean argument "titleonly"
Modified Paths:
--------------
trunk/lib/plugin/RssFeed.php
Modified: trunk/lib/plugin/RssFeed.php
===================================================================
--- trunk/lib/plugin/RssFeed.php 2021-02-22 20:44:05 UTC (rev 10264)
+++ trunk/lib/plugin/RssFeed.php 2021-02-22 20:47:09 UTC (rev 10265)
@@ -64,6 +64,14 @@
{
extract($this->getArgs($argstr, $request));
+ if (($titleonly == '0') || ($titleonly == 'false')) {
+ $titleonly = false;
+ } elseif (($titleonly == '1') || ($titleonly == 'true')) {
+ $titleonly = true;
+ } else {
+ return $this->error(sprintf(_("Argument '%s' must be a boolean"), "titleonly"));
+ }
+
$rss_parser = new RSSParser();
if (!empty($url))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|