Skip to content

Commit

Permalink
fix: Nutripatrol url trailing slash removal regex (#11204)
Browse files Browse the repository at this point in the history
fixes: #11181

---------

Co-authored-by:  Klaus Hartl (k127)
  • Loading branch information
stephanegigandet authored Jan 8, 2025
1 parent 4583ed2 commit f42f8dd
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/ProductOpener/ConfigEnv.pm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ BEGIN {
use vars @EXPORT_OK; # no 'my' keyword for these

$nutripatrol_url = $ENV{NUTRIPATROL_URL};
$nutripatrol_url =~ s/\///; # remove trailing slash if there is one
$nutripatrol_url =~ s/\/$//; # remove trailing slash if there is one

1;
Original file line number Diff line number Diff line change
Expand Up @@ -3596,7 +3596,7 @@ <h2 class="panel_title_card text-medium">Report a problem</h2>

<div>
<a class="button small action-report_product_to_nutripatrol"
href="http:/nutripatrol.localhost/flag/product/?barcode=0200000000235&source=web&flavor=off">
href="//nutripatrol.localhost/flag/product/?barcode=0200000000235&source=web&flavor=off">
Report this product to our moderators
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3596,7 +3596,7 @@ <h2 class="panel_title_card text-medium">Report a problem</h2>

<div>
<a class="button small action-report_product_to_nutripatrol"
href="http:/nutripatrol.localhost/flag/product/?barcode=0200000000235&source=web&flavor=off">
href="//nutripatrol.localhost/flag/product/?barcode=0200000000235&source=web&flavor=off">
Report this product to our moderators
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4772,7 +4772,7 @@ <h2 class="panel_title_card text-medium">Report a problem</h2>

<div>
<a class="button small action-report_product_to_nutripatrol"
href="http:/nutripatrol.localhost/flag/product/?barcode=0200000000034&source=web&flavor=off">
href="//nutripatrol.localhost/flag/product/?barcode=0200000000034&source=web&flavor=off">
Report this product to our moderators
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4300,7 +4300,7 @@ <h2 class="panel_title_card text-medium">Signaler un problème</h2>

<div>
<a class="button small action-report_product_to_nutripatrol"
href="http:/nutripatrol.localhost/flag/product/?barcode=3300000000002&source=web&flavor=off">
href="//nutripatrol.localhost/flag/product/?barcode=3300000000002&source=web&flavor=off">
Report this product to our moderators
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4314,7 +4314,7 @@ <h2 class="panel_title_card text-medium">Signaler un problème</h2>

<div>
<a class="button small action-report_product_to_nutripatrol"
href="http:/nutripatrol.localhost/flag/product/?barcode=3300000000001&source=web&flavor=off">
href="//nutripatrol.localhost/flag/product/?barcode=3300000000001&source=web&flavor=off">
Report this product to our moderators
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4327,7 +4327,7 @@ <h2 class="panel_title_card text-medium">Report a problem</h2>

<div>
<a class="button small action-report_product_to_nutripatrol"
href="http:/nutripatrol.localhost/flag/product/?barcode=3300000000001&source=web&flavor=off">
href="//nutripatrol.localhost/flag/product/?barcode=3300000000001&source=web&flavor=off">
Report this product to our moderators
</a>
</div>
Expand Down

0 comments on commit f42f8dd

Please sign in to comment.