Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken path generated in source code under Windows #77

Open
macik opened this issue Jun 28, 2016 · 0 comments
Open

Broken path generated in source code under Windows #77

macik opened this issue Jun 28, 2016 · 0 comments

Comments

@macik
Copy link

macik commented Jun 28, 2016

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
macik added a commit to macik/phpdoctor that referenced this issue Jun 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant