Skepticats Tracker
Go to the previous open issue
Go to the previous issue (open or closed)
Please log in to bookmark issues
icon_project.png LnBlog / Closed Bug report #68 Getting blog in subdirectory doesn't work properly
Go to the next issue (open or closed)
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
  • Targetted for
    Version 1.3
  • Status
  • 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
  • Reproducability
  • Severity
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
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."