Skip to content

Commit

Permalink
Update publish.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bloatware committed Mar 28, 2024
1 parent e72b060 commit bf68838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion textpattern/publish.php
Expand Up @@ -551,7 +551,7 @@ function preText($store, $prefs = null)
break;

default:
if (isset($u2) || $trailing_slash < 0) {
if (isset($u2) || $trailing_slash < 0 && isset($permlink_modes[$u1])) {
$out['s'] = $u1;
$title = empty($u2) ? null : $u2;
} else {
Expand Down

0 comments on commit bf68838

Please sign in to comment.