We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4230
    • 28 Posts
    Hello there,
    I really enjoy the power for Wayfinder. It’s really great. I do have one suggestion though. If I choose to add a double quote in the ’titleOfLinks’ variable then my menu will be messed up.
    For example if my pagetitle is: Please Add "str_replace" Here
    Then the menu output will look something like this:
    <a href="..." title="Please Add "str_replace" Here">title</a>

    As you can see, this will cause a problem. For that I suggest the changing of line 397 in wayfinder.inc.php from:
    $tempDocInfo['title'] = $tempDocInfo[$this->_config['titleOfLinks']];

    to
    $tempDocInfo['title'] = str_replace('"', '\'', $tempDocInfo[$this->_config['titleOfLinks']]);


    This will take care of that problem. I hope it helps.
      • 9130
      • 171 Posts
      Actually using php’s htmlspecialchars function would be a better solution:
      $tempDocInfo['title'] = htmlspecialchars($tempDocInfo[$this->_config['titleOfLinks']]);
        • 4230
        • 28 Posts
        Hey etal,
        Thanks! That is better.