Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do I see a strange code but only on Firefox?

On a wordpress installation, in the header, but only on Firefox, I see a input field with a strange text.

The "strange" HTML code, in the source-code, is just after <body> and inside the Google Tag Manager. It is

<input><div>lebowski­lebowski</div>

And it shows on the page an input field with that funny text.

You can see it here sourrounded by the other strings of HTML.

<body class="page-template page-template-templates page-template-temp_ricerca page-template-templatestemp_ricerca-php page page-id-186 wp-custom-logo">
<!-- Google Tag Manager (noscript) -->
<input><div>lebowski­lebowski</div>
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P538SGM" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

I also looked inside the header.php, finding anything of strange

<body <?php body_class(); ?>>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-P538SGM" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

It could be an injection of code.

Hope you can help me

like image 682
bobrock4 Avatar asked Feb 09 '19 20:02

bobrock4


1 Answers

This has been a bug in modernizr.js https://hashnode.com/post/dude-that-carpet-really-tied-the-room-together-cjc225hrm05iz9cwuz18md3mo https://github.com/Modernizr/Modernizr/issues/1052

it's fixed in the newer versions. Either update your theme and see if they load a new version or get the js here and replace it in your theme-file. https://cdnjs.com/libraries/modernizr

like image 75
Beatroot Avatar answered Oct 11 '22 07:10

Beatroot