We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!

Answered Redirect Errors

  • discuss.answer
    • 53460
    • 69 Posts
    Sorry for not getting back to this thread. But we resolved this issue. There was a plugin that was very obscurely named that managed this process. In there, there was a line to append the "bio" page with the proper content from the intranet link. Basically:
    if("bio" == trim(htmlspecialchars(urldecode($tmp[0])),ENT_QUOTES)){  // attorney page for CRM needs only
    ...
    $q->where (array(
       ...
       'TV.value' => strtoupper(trim(htmlspecialchars(urldecode($_GET['id'])),ENT_QUOTES))
       ...
    ));
    


    When removing the ",ENT_QUOTES" from that line, everything worked fine.

    The ENT_QUOTES function seems to have been looking for a quote character to modify, but it was confusing the value for a quote (which contained a number 3) with what was being entered from the username. We think that this was modifying the Employee ID value to remove the 3 from the string, which wasn’t matching up with a biography and was sending to a 404 page.

    Very strange
      • 46886
      • 1,154 Posts
      Brilliant! Quite fascinating actually