• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 3.x Series
    • Bug
    • Entities Not Stripped from URL

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Entities Not Stripped from URL

    • Issue Tools
      • View Changes
    1. issueid=860 October 1, 2009 3:11 PM
      pegasus pegasus is offline
      VaultWiki Team
      Entities Not Stripped from URL

      The first URL on the page, which is the article when viewing an article, only removes entities if there is a URL replacement set for the current language. Additionally, if any other URL on the page contains HTML entities, they will not be stripped before being encoded.

      Fixed for the next build. $vbulletin is not available in the scope of the URL builder. Moved the conditional to inside the cleaner. Use $haslang instead to check for existing replacements.

      In vault/special_class_wiki.php, find:
      Code:
      		static $badchars, $replacer;
      Replace with:
      Code:
      		static $badchars, $replacer, $haslang;
      Find:
      Code:
      					$replacer["$langid"]["$lookup[0]"] = $lookup[1];
      Add after:
      Code:
      					$haslang["$langid"] = $langid;
      Find:
      Code:
      		if (!empty($vbulletin->options['vault_replaces']["$langid"]))
      		{
      			$text = preg_replace('#&\#?\w+;#e', '\$this->replace_test(\$replacer[' . $langid . '], "\0");', $text);
      		}
      Replace with:
      Code:
      		$text = preg_replace('#&\#?\w+;#e', '\$this->replace_test(' . ($haslang["$langid"] ? '\$replacer[' . $langid . ']' : 'array()') . ', "\0");', $text);
    Issue Details
    Issue Number 860
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Wiki Pages
    Status Fixed
    Priority 3 - Loss of Functionality
    Affected Version 2.5.4
    Fixed Version 2.5.5
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 10:41 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.