Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Numbered Posted August 1, 2018 Posted August 1, 2018 Hello friends. I create a custom tab with a color setting. Filled it. If i use it in theme CSS as background: {theme="my_var"}; - all is fine, it compiled to background: #1D3746; But if I using background: {hextorgb="my_var" opacity="0.6"}; than it compiled in css to: background: htmlspecialchars( 'my_var', ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE ); This issue worked only for custom variables. Default theme vars worked well. Maybe I forget doing something? Thanks
Numbered Posted August 1, 2018 Author Posted August 1, 2018 I found the place, which doing this wrong stuff: \system\Theme\Theme.php, line 4563: else { $replace = "\nCONTENT;\n\$return .= htmlspecialchars( \$" . $var[1] . ", ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE );\n\$return .= <<<CONTENT\n"; } If I modify them to something like that it starts working right: else { $rep1 = htmlspecialchars( $var[1], ENT_QUOTES | ENT_DISALLOWED, 'UTF-8', FALSE ); $replace = "\nCONTENT;\n\$return .= $rep1\n\$return .= <<<CONTENT\n"; } The result: So. IPS, fix it please
Numbered Posted August 1, 2018 Author Posted August 1, 2018 1 minute ago, Nathan Explosion said: Found a bug? Log a ticket. Done. #1016546. Firstly I wasn't sure about them :)
Numbered Posted August 1, 2018 Author Posted August 1, 2018 Actually, this file contains a lot of strange positions, like that: and that:
Recommended Posts
Archived
This topic is now archived and is closed to further replies.