Results 1 to 6 of 6

Quotes ("") not being rendered correctly in urls

This is a discussion on Quotes ("") not being rendered correctly in urls within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi folks, I've noticed that if I post a url on my forum with quotes in it, it displays " ...

  1. #1
    Senior Member
    Real Name
    Glen
    Join Date
    Apr 2008
    Location
    Scotland
    Posts
    104
    Liked
    0 times

    Quotes ("") not being rendered correctly in urls

    Hi folks,

    I've noticed that if I post a url on my forum with quotes in it, it displays " instead of a ".

    For example...
    "The Secret Millionaire" (2006)

    Ah...I see it does the same here...

    Any ideas please?

  2. #2
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    quotes are NOT valid URL chacters.
    HTML URL Encoding Reference

  3. #3
    Senior Member
    Real Name
    Glen
    Join Date
    Apr 2008
    Location
    Scotland
    Posts
    104
    Liked
    0 times
    The quotes are not part of the url, they're in the title, and it's not displayed properly, as you can see above.

  4. #4
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    oh, i read your post wrong....

    confirmed on my site too

  5. #5
    Senior Member briansol's Avatar
    Real Name
    Brian
    Join Date
    Apr 2006
    Location
    Central CT, USA
    Posts
    6,981
    Liked
    8 times
    actualyl no, it's imdb.

    view source of their page. they hard coded the html value into it..
    Code:
    <title>&#x22;The Secret Millionaire&#x22; (2006)</title>

  6. #6
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,741
    Liked
    168 times
    The issue is that they have hex number in entity encoding here.
    Please try to modify functions_vbseo_misc.php file:
    FIND:
    PHP Code:
    $ptitle str_replace
    ADD ABOVE:
    PHP Code:
    $tmatch[1] = preg_replace('/&#x([a-fA-F0-9]{2});/ue'"'&#'.hexdec('$1').';'"$tmatch[1]); 

Similar Threads

  1. Ack!! "Select Your Forum URLs Global Format" Questions
    By sfnet in forum URL Rewrite Settings
    Replies: 3
    Last Post: 09-20-2007, 09:55 PM
  2. Replies: 7
    Last Post: 04-28-2007, 04:11 AM
  3. Replies: 5
    Last Post: 09-09-2006, 04:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •