Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

missing " after link attrib

i noticed that when using html4strict.php and putting a link attrib in it, he changes the last " with &quot
It should be like this:

<link rel="stylesheet"  href="">

But he creates this:

<link rel="stylesheet"  href=";>

Where do i have to search for this problem? I tested it in geshi standalone and it gives no problem. But when putting in my Vanilla, he changes the last " in &quot


  • jackmaessenjackmaessen ✭✭✭
    edited March 2014

    nobody any idea? it seems that the last " which changes to &quot is part of the url and is a link, even in a code block...

  • I found the problem: in the file geshi.php, about line 4303, there is a function:

     function hsc($string, $quote_style = ENT_COMPAT) {
            // init
            static $aTransSpecchar = array(
                '&' => '&amp;',
                '"' => '&quot;',
                '<' => '&lt;',
                '>' => '&gt;',

    Disabling the second line of this array solves the problem.
    Maybe useful for people who have the same problem

Sign In or Register to comment.