Skepticats Tracker
LnBlog
previous_open_issue.png
Go to the previous open issue
previous_issue.png
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
bug_report_small.png
icon_project.png LnBlog / Closed Bug report #68 Getting blog in subdirectory doesn't work properly
next_issue.png
Go to the next issue (open or closed)
next_open_issue.png
Go to the next open issue
icon_info.png This issue has been closed with status "Fixed" and resolution "RESOLVED".
Issue basics
  • Type of issue
    Bug report
  • Category
    General
  • Targetted for
    Version 1.3
  • Status
    Fixed
  • Progress
  • Priority
    Not determined
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (1)
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
  • Time spent
    No time spent
    Click here to see time logged against this issue
Issue details
  • Resolution
    RESOLVED
  • Reproducability
    Always
  • Severity
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
It seems that pulling the blog ID for a blog that lives in a sub-directory of the web root doesn't work properly. The bloglist in system.ini stores a relative path to the blog, but around line 700 of blogconfig.php, the code that gets the blog ID from the query string strips all non-word characters from the blog ID, including path delimiters. This doesn't affect all code paths as many of them get the blog ID from a PHP script. However, it does affect the search plugin.
Steps to reproduce this issue
# Create a blog underneath the LnBlog folder, e.g. with a path like "LnBlog-test/myblog".
# Add some test entries to the blog.
# Use the sidebar search plugin to run a search. The result is a boat-load of messages like the following:
"Unable to locate blogID LnBlogtestmyblog2. Make sure the ID is correct or add an entry to the [bloglist] section of system.ini."