not change links properly

tomaszx - April 5, 2008 - 00:18
Project:Path Filter
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

using \" url() \" you excluded a convertion this link by drupal filter.
I sugest to chang the line:

          return preg_replace('/"internal:([^"#\?]+)\??([^"#]+)?#?([^"]+)?"/e',
              "'\"'. url('$1', array('query' => '$2' ? '$2' : NULL, 'fragment' => '$3' ? '$3' : NULL, 'absolute' => ". $absolute .")) .' \"'", $text);

to:

      ($absolute == 'TRUE') ? $a = '' : $a = '"';
      return preg_replace('/"internal:([^"#\?]+)\??([^"#]+)?#?([^"]+)?"/e',
        "'$a'. url('$1', array('query' => '$2' ? '$2' : NULL, 'fragment' => '$3' ? '$3' : NULL, 'absolute' => ". $absolute .")) .'$a'", $text);

#1

alexanderpas - March 15, 2009 - 03:04
Priority:critical» normal
Status:active» postponed (maintainer needs more info)

pleae explain.

#2

mrfelton - October 17, 2009 - 13:39
Status:postponed (maintainer needs more info)» closed

Closing due to 7 months of inactivity. Plus, I have no idea what the original question was!

 
 

Drupal is a registered trademark of Dries Buytaert.