witsec / mobirise-white-label

White label your website by removing references to the generator in the source code
MIT License
24 stars 11 forks source link

"engine" tag doesn't get removed #3

Closed witsec closed 5 years ago

witsec commented 5 years ago

Right now the extension doesn't properly filter the engine-tag:

<section id="top-1" class="engine">
  <a href="https://mobirise.ws">Mobirise Website Builder</a>
  " v4.8.10"
</section>

The regular expression needs some adjustments.

witsec commented 5 years ago

Could potentially solve this: /<section class="engine">.+<\/section>/img

With this: /<section.*class=['"]?engine['"]?[\s\S]*?<\/section>/img

witsec commented 5 years ago

Fixed in v0.5