diff options
Diffstat (limited to 'www/drupal4-textile/files/patch-DrupalTextile.inc')
-rw-r--r-- | www/drupal4-textile/files/patch-DrupalTextile.inc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/www/drupal4-textile/files/patch-DrupalTextile.inc b/www/drupal4-textile/files/patch-DrupalTextile.inc new file mode 100644 index 000000000000..1ebd18c65e45 --- /dev/null +++ b/www/drupal4-textile/files/patch-DrupalTextile.inc @@ -0,0 +1,21 @@ +--- DrupalTextile.inc.orig Fri Dec 8 13:01:07 2006 ++++ DrupalTextile.inc Fri Dec 8 13:00:49 2006 +@@ -38,11 +38,17 @@ + * A <code>string</code> containing the formatted URL. + */ + function format_url($args) { ++ $query = null; ++ if (preg_match ('/([^\?]*)\?(.*)/', $args['url'], $matches)) { ++ $args['url'] = $matches[1]; ++ $query = $matches[2]; ++ } ++ + if (preg_match('<^#>', $args['url'])) { + $args['url'] = $_GET['q'] . $args['url']; + } + +- $args['url'] = ($args['url'] ? url($args['url']) : ''); ++ $args['url'] = ($args['url'] ? url($args['url'], $query) : ''); + + return parent::format_url($args); + } |