Hi,

I've tried a couple of hours on my Mac OSX through Terminal to apply the patch to common.inc with absolutely no joy.

Would somebody kindly just post me the correct code that I have to replace in the following in common.inc please.

// The special path '<front>' links to the default front page.
   if (!empty($path) && $path != '<front>') {
     $path = drupal_get_path_alias($path);
-    $path = drupal_urlencode($path);
-    if (!$clean_url) {
+    if (strpos($path, '://') !== FALSE) {
+      $base = '';
+    }
+    else {
+      $path = drupal_urlencode($path);
+    }
+    if (!$clean_url && strpos($path, '://') === FALSE) {
       if (isset($query)) {
         return $base . $script .'?q='. $path .'&'. $query . $fragment;
       }

Presume maybe the whole common.inc file? would be most appreciated.

All the best,
Lilian

Comments

betz’s picture

Status: Active » Fixed

look for:

if (!empty($path) && $path != '<front>') {
     $path = drupal_get_path_alias($path);

delete the 2 following lines:

$path = drupal_urlencode($path);
    if (!$clean_url) {

Now paste this:

if (strpos($path, '://') !== FALSE) {
  $base = '';
}
else {
  $path = drupal_urlencode($path);
}
if (!$clean_url && strpos($path, '://') === FALSE) {

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.