https://bugzilla.wikimedia.org/show_bug.cgi?id=20999

           Summary: When exists one category with the char: "
           Product: MediaWiki extensions
           Version: any
          Platform: All
               URL: http://www.blobject.es
        OS/Version: All
            Status: NEW
          Severity: blocker
          Priority: Normal
         Component: SelectCategory
        AssignedTo: [email protected]
        ReportedBy: [email protected]


When we have one category with the char: ", extension broken html because, we
print in function createTagCloud, in SelectCategoryTagCloud.body.php:

$currentRow = "<span title='" .wfMsg( 'selectcategory-tooltip' ). "'
onclick='checkCategory(this)' class='" . $existingClass . $link_class . "'
style='{$style}'>" . $title->getText() . "</span>&nbsp; ";

I have solved it, changed the line by:
$currentRow = "<span title='" .wfMsg( 'selectcategory-tooltip' ). "'
onclick='checkCategory(this)' class='" . $existingClass . $link_class . "'
style='{$style}'>" . str_replace('"','&quot;',$title->getText()) .
"</span>&nbsp; ";

Regards!


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to