Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
#698 Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
yama committed Aug 4, 2016
1 parent 6772768 commit 7564d01
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions manager/includes/document.parser.class.inc.php
Expand Up @@ -469,10 +469,7 @@ function cleanDocumentIdentifier($qOrig) {
(!empty($qOrig)) or $qOrig = $this->config['site_start'];
$q= $qOrig;
/* First remove any / before or after */
if ($q[strlen($q) - 1] == '/')
$q= substr($q, 0, -1);
if ($q[0] == '/')
$q= substr($q, 1);
$q = trim($q,'/');
/* Save path if any */
/* FS#476 and FS#308: only return virtualDir if friendly paths are enabled */
if ($this->config['use_alias_path'] == 1) {
Expand Down

0 comments on commit 7564d01

Please sign in to comment.