Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kmz map plugin validate URL #331

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
8 changes: 6 additions & 2 deletions plugins/kmz-map/src/public.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@
<?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
Loading