HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Bug with spaces

jviljvil New
edited December 2013 in Feedback


I found a bug when using this plugin on Roles with spaces like: "Confirm Email". It never shows the badge.

I used the following code to fix this issue:


foreach( $roles as $role ) {
            echo 'span title="' . $role . '" class="RoleBadges ' . str_replace(' ', '', $role) . 'Badge"';

I only added a simple string replace for spaces and works fine.


Sign In or Register to comment.