Skip to content

Broken path generated in source code under Windows #77

@macik

Description

@macik

Error spotted using PHPDoctor under Windows platform.

Paths generated under Unix (HTML header and page menu) - it's OK:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="PHPDoctor 2.0.5 (http://peej.github.com/phpdoctor/)">
<meta name="when" content="Tue, 13 Jan 2015 10:28:20 +0000">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css">
<link rel="start" href="../../../../overview-summary.html">
<title>modules/users/inc/users.functions.php (Cotonti 0.9.18 Reference)</title>
</head>
<body id="file" onload="parent.document.title=document.title;">
<div class="header">
<h1>Cotonti</h1>
<ul>
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li>Package</li><li>Class</li><li>Tree</li><li><a href="../../../../overview-files.html">Files</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../todo-list.html">Todo</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
</ul>
</div>
<div class="small_links">
<a href="../../../../index.html" target="_top">Frames</a>
<a href="../../../../source/modules/users/inc/users.functions.php.html" target="_top">No frames</a>
</div>

Paths generated under Windows (Error case):

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="PHPDoctor 2.0.5 (http://peej.github.com/phpdoctor/)">
<meta name="when" content="Tue, 28 Jun 2016 15:02:32 +0000">
<link rel="stylesheet" type="text/css" href="../stylesheet.css">
<link rel="start" href="../overview-summary.html">
<title>modules\users\inc\users.functions.php (Cotonti reference)</title>
</head>
<body id="file" onload="parent.document.title=document.title;">
<div class="header">
<h1>Cotonti Siena</h1>
<ul>
<li><a href="../overview-summary.html">Overview</a></li>
<li>Package</li><li>Class</li><li>Tree</li><li><a href="../overview-files.html">Files</a></li>
<li><a href="../deprecated-list.html">Deprecated</a></li>
<li><a href="../todo-list.html">Todo</a></li>
<li><a href="../index-all.html">Index</a></li>
</ul>
</div>
<div class="small_links">
<a href="../index.html" target="_top">Frames</a>
<a href="../source\modules\users\inc\users.functions.php.html" target="_top">No frames</a>
</div>

We can see:

  1. wrong base path ../ instead ../../../../ (error spotted on all pages deeper than 1 level from index.htm)
  2. wrong path generated with mixed style slashes: ../source\modules\users\inc\users.functions.php.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions