Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Strip trailing slash on server path now that designs is absolute

  • Loading branch information...
commit c3e8925be20d636430d244ae8181b6ac3a688fd9 1 parent 9428bd9
@birtles birtles authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 editor/lib/php/editor-util.inc
View
6 editor/lib/php/editor-util.inc
@@ -32,9 +32,9 @@ function getStylesheet() {
// Construct URL to stylesheet
// XXX Rename upload_server to wall_server
$server_path = $config['editor']['upload_server'];
- // Make sure server path ends with a /
- if (substr($server_path, -1) !== "/")
- $server_path .= "/";
+ // Make sure server doesn't ends with a /
+ if (substr($server_path, -1) == "/")
+ $server_path = substr($server_path, 0, -1);
return $server_path . $design->editorStylesheet;
}
?>
Please sign in to comment.
Something went wrong with that request. Please try again.