Skip to content

Commit

Permalink
kmz map plugin validate URL
Browse files Browse the repository at this point in the history
  • Loading branch information
keksa committed Jun 6, 2024
1 parent a18c028 commit c2af3e1
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"displayName": "KMZ Map",
"description": "A UISP CRM plugin that provides a frontend Google Map for clients to view tower coverage.",
"url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/kmz-map",
"version": "1.1.0",
"version": "1.2.0",
"unmsVersionCompliancy": {
"min": "1.0.0",
"max": "2.1.0"
Expand Down
Binary file modified plugins/kmz-map/kmz-map.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion plugins/kmz-map/src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"displayName": "KMZ Map",
"description": "A UISP CRM plugin that provides a frontend Google Map for clients to view tower coverage.",
"url": "https://github.com/Ubiquiti-App/UCRM-plugins/tree/master/plugins/kmz-map",
"version": "1.1.0",
"version": "1.2.0",
"unmsVersionCompliancy": {
"min": "1.0.0",
"max": null
Expand Down
4 changes: 2 additions & 2 deletions plugins/kmz-map/src/public.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
<?php } ?>
<div class="buttons">
<?php if (! empty(\KMZMap\Config::$LINK_ONE[0])) { ?>
<a href="<?php echo htmlspecialchars(\KMZMap\Config::$LINK_ONE[0], ENT_QUOTES); ?>" class="btn" style="background-color: #28a745;"><?php echo htmlspecialchars(\KMZMap\Config::$LINK_ONE[1], ENT_QUOTES); ?></a>
<a href="<?php echo htmlspecialchars(filter_var(\KMZMap\Config::$LINK_ONE[0], FILTER_VALIDATE_URL, ['flags' => FILTER_NULL_ON_FAILURE]) ?? '', ENT_QUOTES); ?>" class="btn" style="background-color: #28a745;"><?php echo htmlspecialchars(\KMZMap\Config::$LINK_ONE[1], ENT_QUOTES); ?></a>
<?php } ?>
<?php if (! empty(\KMZMap\Config::$LINK_TWO[0])) { ?>
<a href="<?php echo htmlspecialchars(\KMZMap\Config::$LINK_TWO[0], ENT_QUOTES); ?>" class="btn" style="background-color: #007bff;"><?php echo htmlspecialchars(\KMZMap\Config::$LINK_TWO[1], ENT_QUOTES); ?></a>
<a href="<?php echo htmlspecialchars(filter_var(\KMZMap\Config::$LINK_TWO[0], FILTER_VALIDATE_URL, ['flags' => FILTER_NULL_ON_FAILURE]) ?? '', ENT_QUOTES); ?>" class="btn" style="background-color: #007bff;"><?php echo htmlspecialchars(\KMZMap\Config::$LINK_TWO[1], ENT_QUOTES); ?></a>
<?php } ?>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion plugins_2.1.x.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"displayName": "KMZ Map",
"description": "A UISP CRM plugin that provides a frontend Google Map for clients to view tower coverage.",
"url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/kmz-map",
"version": "1.1.0",
"version": "1.2.0",
"unmsVersionCompliancy": {
"min": "1.0.0",
"max": null
Expand Down
2 changes: 1 addition & 1 deletion plugins_2.2.x.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"displayName": "KMZ Map",
"description": "A UISP CRM plugin that provides a frontend Google Map for clients to view tower coverage.",
"url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/kmz-map",
"version": "1.1.0",
"version": "1.2.0",
"unmsVersionCompliancy": {
"min": "1.0.0",
"max": null
Expand Down
2 changes: 1 addition & 1 deletion plugins_2.3.x.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"displayName": "KMZ Map",
"description": "A UISP CRM plugin that provides a frontend Google Map for clients to view tower coverage.",
"url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/kmz-map",
"version": "1.1.0",
"version": "1.2.0",
"unmsVersionCompliancy": {
"min": "1.0.0",
"max": null
Expand Down
2 changes: 1 addition & 1 deletion plugins_2.4.x.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"displayName": "KMZ Map",
"description": "A UISP CRM plugin that provides a frontend Google Map for clients to view tower coverage.",
"url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/kmz-map",
"version": "1.1.0",
"version": "1.2.0",
"unmsVersionCompliancy": {
"min": "1.0.0",
"max": null
Expand Down
2 changes: 1 addition & 1 deletion plugins_2.5.x.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"displayName": "KMZ Map",
"description": "A UISP CRM plugin that provides a frontend Google Map for clients to view tower coverage.",
"url": "https:\/\/github.com\/Ubiquiti-App\/UCRM-plugins\/tree\/master\/plugins\/kmz-map",
"version": "1.1.0",
"version": "1.2.0",
"unmsVersionCompliancy": {
"min": "1.0.0",
"max": null
Expand Down

0 comments on commit c2af3e1

Please sign in to comment.