[geeklog-cvs] geeklog-1.3/system lib-story.php,1.18,1.19

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Sat Jan 29 13:03:15 EST 2005


Update of /var/cvs/geeklog-1.3/system
In directory www:/tmp/cvs-serv11022

Modified Files:
	lib-story.php 
Log Message:
Added missing stripslashes() calls and function description.


Index: lib-story.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-story.php,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** lib-story.php	29 Jan 2005 17:52:55 -0000	1.18
--- lib-story.php	29 Jan 2005 18:03:13 -0000	1.19
***************
*** 510,513 ****
--- 510,521 ----
  
  /**
+ * Return information for a story
+ *
+ * This is the story equivalent of PLG_getItemInfo. See lib-plugins.php for
+ * details.
+ *
+ * @param    string  $sid    story ID
+ * @param    string  $what   comma-separated list of story properties
+ * @return   mixed           string or array of strings with the information
  *
  */
***************
*** 549,556 ****
          switch ($p) {
              case 'description':
!                 $retval[] = trim ($A['introtext'] . ' ' . $A['bodytext']);
                  break;
              case 'excerpt':
!                 $retval[] = trim ($A['introtext']);
                  break;
              case 'title':
--- 557,565 ----
          switch ($p) {
              case 'description':
!                 $retval[] = trim (stripslashes ($A['introtext']) . ' '
!                                   . stripslashes ($A['bodytext']));
                  break;
              case 'excerpt':
!                 $retval[] = trim (stripslashes ($A['introtext']));
                  break;
              case 'title':




More information about the geeklog-cvs mailing list