malformed regex in simple-banner.php breaks relative links by adding https://
-
hey, great job with the plugin. you might wanna consider applying this patch though:
--- simple-banner.orig 2023-11-30 15:19:16.056016000 +0000 +++ simple-banner.php 2023-11-30 15:18:26.371711000 +0000 @@ -648,7 +648,7 @@ var style_custom_button_css = document.createElement('style'); // Banner Text - var hrefRegex = /href\=[\'\"](?!http|https)(.*?)[\'\"]/gsi; + var hrefRegex = /href\=[\'\"](?!http|https)([^\/].*?)[\'\"]/gsi; var scriptStyleRegex = /<(script|style)[^>]*?>.*?<\/(script|style)>/gsi; function stripBannerText(string) { let strippedString = string;
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘malformed regex in simple-banner.php breaks relative links by adding https://’ is closed to new replies.