• 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
    • Strange code in my pages now.

    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: Strange code in my pages now.

    • Issue Tools
      • View Changes
    1. issueid=632 June 9, 2009 11:15 AM
      mickknutson mickknutson is offline
      Regular Member
      Strange code in my pages now.

      http://www.blincmagazine.com/forum/w...ne?redirect=no

      I was editing an existing page, then noticed the following:
      Code:
      #!#CES*XST-@1#!#
      the items in question are:

      Code:
      [ B ]15th century [ /B  ]
      and

      Code:
      [ category ]General[ /category ]
      
      [ COMMENT ]The End...[ /COMMENT ]
      as I dig, it definaletly has to do with the numbers like 1999 and [ b ] Bold Tags.

      Code:
      #!#CES*XST-@4#!#1917 [/b]Major Orde-Lees
    Issue Details
    Issue Number 632
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category BB-Code Parsing
    Status Fixed
    Priority 7 - Minor Features / Enhancements
    Affected Version 2.3.1
    Fixed Version 2.3.2
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. June 9, 2009 11:23 AM
      pegasus pegasus is offline
      VaultWiki Team
      The strange code you are seeing is encoding which hides certain aspects of your page from becoming autolinks - specifically, other BB-Code tag tags. This has been present since VaultWiki was created.

      However, since you have an existing article that matches one or all of the word elements of the encoding ("CES", "XST", 1), an autolink is being created on the encoding. Then, since the encoding has been changed, VaultWiki cannot find where it is to remove it.

      I will look for a workaround.
      Reply Reply  
    2. June 9, 2009 11:36 AM
      pegasus pegasus is offline
      VaultWiki Team
      Try this. In vault/special_plugins_autolink.php, find:
      Code:
      $linktitle = stripslashes($linktitle);
      Replace with:
      Code:
      		if (
      			$linktitle == 'ces' OR
      			$linktitle == 'dol' OR
      			$linktitle == 'xst' OR
      			$linktitle == 'l' OR
      			intval($linktitle) > 0
      		)
      		{
      			continue;
      		}
      Reply Reply  
    3. June 9, 2009 12:22 PM
      mickknutson mickknutson is offline
      Regular Member
      That seemed to work. Although I did not understand what you mean by:
      However, since you have an existing article that matches one or all of the word elements of the encoding ("CES", "XST", 1), an autolink is being created on the encoding. Then, since the encoding has been changed, VaultWiki cannot find where it is to remove it.
      Reply Reply  
    4. June 9, 2009 1:15 PM
      pegasus pegasus is offline
      VaultWiki Team
      To clarify: To prevent autolinks from being created in certain places, VaultWiki encodes those areas. However, it is possible that an existing article matches part of the "encoded" text. If this happens, VaultWiki will create an autolink there, and corrupt the encoded text. When autolink creation is complete, VaultWiki cannot decode those areas of the article, because the encoding is corrupt.

      Specifically, you had an article called "4". This placed an autolink over the 4th encoded area, making it impossible for VaultWiki to decode. Once this happened, it became difficult for VaultWiki to decode areas 1 - 3.

      The workaround that has been implemented does the following:
      VaultWiki will not create auto-links to articles with the following titles -
      • CES
      • XST
      • DOL
      • L
      • any positive integer (1, 2, 3, ... 1997, 1998, ... 13653920, etc)


      The issue is now fixed in the current ZIP.
      Reply Reply  
    + 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 7:09 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.