/[drupal]/contributions/modules/multidomain/multidomain_alias.patch
ViewVC logotype

Contents of /contributions/modules/multidomain/multidomain_alias.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download) (as text)
Tue Nov 4 04:29:45 2008 UTC (12 months, 3 weeks ago) by betz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +23 -0 lines
File MIME type: text/x-patch
re-commit of the included common.inc patch
1 Index: includes/common.inc
2 ===================================================================
3 RCS file: /cvs/drupal/drupal/includes/common.inc,v
4 retrieving revision 1.611
5 diff -u -r1.611 common.inc
6 --- includes/common.inc 10 Jan 2007 23:30:07 -0000 1.611
7 +++ includes/common.inc 20 Apr 2007 23:56:29 -0000
8 @@ -1181,8 +1181,13 @@
9 // The special path '<front>' links to the default front page.
10 if (!empty($path) && $path != '<front>') {
11 $path = drupal_get_path_alias($path);
12 - $path = drupal_urlencode($path);
13 - if (!$clean_url) {
14 + if (strpos($path, '://') !== FALSE) {
15 + $base = '';
16 + }
17 + else {
18 + $path = drupal_urlencode($path);
19 + }
20 + if (!$clean_url && strpos($path, '://') === FALSE) {
21 if (isset($query)) {
22 return $base . $script .'?q='. $path .'&'. $query . $fragment;
23 }

  ViewVC Help
Powered by ViewVC 1.1.2