| 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 |
}
|