Current time: 05-23-2013, 01:02 AM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Validation Issue [C-Chris W B.]
05-23-2009, 09:46 PM
Post: #1
[F] Validation Issue [C-Chris W B.]
There's a small html validation issue with forum names. If I'm being too picky, then mark this as bogus - I know a few MyBB pages don't validate either.

Take a look at this thread. Notice the title:

Code:
<title>Bug test &amp; Stuff</title>

But, notice the navigation (esp: Testing & Trashing):

Code:
<div class="navigation">
<a href="http://community.mybboard.net/index.php">MyBB Community Forums</a>
/
<a href="forum-12.html">General Discussion</a>
/
<a href="forum-13.html">Testing & Trashing</a>
/
<span class="active">Bug test &amp; Stuff</span>
</div>

To fix this, I would suggest this change. In ./inc/functions.php, find (around line 2888):

PHP Code:
                $navsize count($navbits);
                
$navbits[$navsize]['name'] = $forumnav['name']; 

Replace with:

PHP Code:
                $navsize count($navbits);
                
$navbits[$navsize]['name'] = htmlspecialchars_uni($forumnav['name']); 

The forumdisplay is also effected: http://community.mybboard.net/forum-13.html - I'm thinking it's because the forum name isn't put through htmlspecialchars_uni like other pages (like showthread - note Bug test & Stuff).

Code:
<title>MyBB Community Forums - Testing & Trashing </title>

Code:
            <div>
                <strong>Testing & Trashing</strong>
            </div>

Suggest after

PHP Code:
$parentlist $foruminfo['parentlist']; 

adding

PHP Code:
$parentlist $foruminfo['parentlist'];
$foruminfo['name'] = htmlspecialchars_uni($foruminfo['name']); 

I think that cures this problem.
Find all posts by this user
06-04-2009, 10:46 AM
Post: #2
[F] Validation Issue
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group
Find all posts by this user


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication