patchBibORB - Patches: patch #4383, only expand @String macros if...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #4383: only expand @String macros if string is not put in parenthesis

Submitter:  None
Submitted:  Thu 01 Sep 2005 11:00:51 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Originator Email:  -email is unavailable-
Open/Closed:  Open

Discussion

Thu 01 Sep 2005 11:00:51 AM UTC, original submission:  

--- PARSEENTRIES.php.orig 2005-08-23 10:31:59.000000000 +0200
+++ PARSEENTRIES.php 2005-08-23 10:31:59.000000000 +0200
@@ -329,12 +329,13 @@
 // Remove enclosures around entry field values.  Additionally, expand macros if flag set.
  function removeDelimitersAndExpand($string, $preamble = FALSE)
  {
-    // 02/05/2005 G. Gardey
- $string = $this->removeDelimiters($string);
+   // 2005-08-18 Jr
+   //    // 02/05/2005 G. Gardey
+   // $string = $this->removeDelimiters($string);
 // expand the macro if defined
 // 23/08/2004 Mark - changed isset() to !empty() since $this->strings isset in constructor.
- if($string && $this->expandMacro)
- {
+ if($string && $this->expandMacro && $string{0} != "{" && $string[strlen($string)-1] != "}")
+   {
             if(!empty($this->strings) && !$preamble)
  {
 // macro are case insensitive
@@ -364,6 +365,8 @@
                     }
                 }
         }
+    // 02/05/2005 G. Gardey
+ $string = $this->removeDelimiters($string);
             return $string;
         }
 // This method starts the whole process

Anonymous

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

History

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2005-09-01 None Carbon-Copy- Added venator --AT-- freenet --DOT-- de

Back to the top

Powered by Savane 3.16-11ef.
Corresponding source code