Unverified Commit 670be08d authored by Patrizio Bekerle's avatar Patrizio Bekerle
Browse files

Trim whitespaces from origins

parent abf518c8
Pipeline #14924 passed with stage
in 37 seconds
# WebAppPassword Change Log
## 20.12.0
- Leading and trailing whitespaces will now be automatically trimmed from the origins
## 20.10.0
- Updated and tested app for Nextcloud 20
......
......@@ -13,7 +13,7 @@ that uses this app to generate a temporary password and make a WebDAV request to
See [Example](https://gitlab.tugraz.at/dbp/nextcloud/webapppassword#example) for a Nextcloud WebDAV file picker example
that uses this application.]]></description>
<version>20.10.0</version>
<version>20.12.0</version>
<licence>agpl</licence>
<author mail="patrizio.bekerle@tugraz.at">Patrizio Bekerle</author>
<namespace>WebAppPassword</namespace>
......
{
"hashes": {
"CHANGELOG.md": "1586639431ceb7919cd25d229bc9f1c15f93b593449d83af9928922c6193bf6b588e10bb367170f33a7d5ca914d0ff2c480b4d56999abe156010f2e5e194056e",
"CHANGELOG.md": "b97417214183cd0e7344f15c3a34e03c7a349bc9238003ff4597f1b014e35404f9ab7c3746dc293ab551798758ca3341c27b7dd92ba52a17c36bac8a1aace285",
"COPYING": "a0a86214ea153fb07ff35ceec0848dd1703eae22de036a825efc8394e50f65e3044832f3b49cf7e45a39edc470bdf738abc36a3a78ca7df3a6e73c14eaef94a8",
"README.md": "951132925e23f259e681c56b649bc1cca27a485ab19591a3a25c82300848b438c385c406c7b52c5eaa501dba35dd28d21b6e33616bb48052ada317f4d2d9fe60",
"appinfo\/app.php": "51717f154f182482316b03d73b7c80d34eda8cdb299b4d56aabc5ed291b73ce563c82356c828529d7856139d87920bdee6a077a427d8b7cfbe8bc38d998759a4",
"appinfo\/info.xml": "f287656c306172379f9a3a916b201de1d2667504d48c9b247d95e1c7e80aa6c8b25b808e7e87576f8c9f2f9ca657b2de53fe33037401ff5159a08cb292136500",
"appinfo\/info.xml": "fbda640b294f41bc5fbb5b3d148abcfd722c2c7f2a39230bde3e7ffb2aba7c75bad13e5206a9574e3bed752086c19929be87e4d62a5a6590bfd5f1e1d272f9b7",
"appinfo\/routes.php": "04d324a995c5e9282c911b16a38fafce1e126bfe34d34bce21b74c5ceb5cf1fbc1dd684c1d581bd3011f3f1bacfb789b8957a62b574e9172f027cce0c74d9750",
"composer.json": "7e4dda7f78ca3d0775dd905d9e05d014a586bc3c0e60fda641111710557bee70b624651261ade0026e76634908feeb0c984e135b13339578af9079416f0555b0",
"composer.lock": "b1c27528aadeb4f189bbcd9c7836f6f65a8e44bcc80e090d1a3a999fd8e6e5f7f8d7081c4710a7df4e41986c874c57788a7ba4e4f5d1d4aa0fd7e761611c83d5",
......@@ -17,7 +17,7 @@
"l10n\/de.js": "f0de49654f57ead9117c4aca5631d8c199a3f3785d56ca5898aff2306e387bb7fc02227c9c4a18750afecea07bc703f811398f3d0e4465d44ea43fb199471f4d",
"l10n\/de.json": "9f2a79a47532d32c809db7c47ccd2ca49fd6e38edc6b76da2e36d6ce982d23367811ebf42e986351b21e8e93c4e37dac4c46e696da1d3a9cfaaf9f79a4cf76d2",
"lib\/AppInfo\/Application.php": "ec244ea791f31366364bf6c325007263a0c1fc16180cc2331eac9b49e9eb04232342c7c15c72800290dd6294f4a3f40c1697603f86949f1e041a0e1a719c2ec5",
"lib\/Config\/Config.php": "faa64232788dc91c591446ede0c931588363ec32c810d704758ab1b7751ae224fed2861b435814de8ce9b794f9ba7310eecb0dd935b8c49a52508258b61e995b",
"lib\/Config\/Config.php": "5b0448a1cc9f95e37dba4a3b73ce0373eb60f07acdd505ad4cef76630c68aed2ce95c43deadcf932e7d8dc7cb3993b60f577c094c866d217af3270feb8c7f288",
"lib\/Connector\/Sabre\/CorsPlugin.php": "4f4ca0f9f88c338442ba93c10b880db1583db611aefea21a306fe58ab8f358071b3330b04444d68d0514ab0526dba8f6a96ed5c94ec11b1019d08654cc6aad4e",
"lib\/Controller\/AdminController.php": "25d00c2e2bb00880b73faf34e831d49af30750bbb15b03770093741376bff41fbb2b038717896b0c3b1b79aac51a5a9517cbbfbb02e381143a3ce876c43b0ceb",
"lib\/Controller\/PageController.php": "cefa5b3582139d9a20d88f9fbfcd9307bfa4ee52bf51b3a2c8d2f779efcdf99a702ca672cd8dbf6e161951a55a9d89f4a0063775b7dc99b83f7ef35c8b1bfa27",
......@@ -31,6 +31,6 @@
"translationfiles\/de\/webapppassword.po": "1aabeca50463f5dc535bb548aff1169a2f666bb91c49a8cf2eca99b1532fb30fa293ee48955e8597d622de52fae91928bcdee7beae81a6c50671a32a85150251",
"translationfiles\/templates\/webapppassword.pot": "96ef45918beed49544cfe7079e186b2117d4ea296d1b562531625a8091cbcaef92413f75a42a3f9c5ba22a90240e39b392d5b5d3962652765504d527add969fb"
},
"signature": "q3IPOGve3E8f80u1AqPSZLoOPzHU4JeJZkhsmrFustw4m8Qre0Bd\/BEqVNcXEKAhC\/SPK5fDS6l2owfX5I6BO7QrI\/wchpLhLDVZTVQt06zit6SyMEVuEwnUXoWMEtXLUnSlQKcpO+XljfQ82I8hdwBp\/M7z1J3PYblD33u\/OOssOxHkk3Dz1KsyyAbs+1V3c7s6blj0PRSdf75+lNWmZkD0QK+PO4JSczTyE7ljHIjXqmlJddeH2i1eDmaGzVNsGSR3Q77V7IzXYKYQhdE2MZ6+4Q9TzT11p\/d1MG+6HB7B4FNVXTGOZQeLTeVjAEOGd5EhXVX\/Sz1GqNQPLut+04wklXavVhFbJ53rDm0+PP5PQmj3DBYsPq7ODf8wDTXS6JqYT+nKRQ3zsvJaKe\/eyW3OEeHoUExFd9AxE+ZYp\/NpYVD400tFPetjJys3TbNW5+D+cdiEeLYEb73WlJLYC6NhJn3gtt0JRicYlZgfcQ6AN8nmdrtapAYru7JBVll8F2Koe+bsyjw0\/3hgd\/6yJ8JRkoqXHKfePVl8nLevPKNqr0dwDFYu17dZ9cGcZ96K7Wo1SvbWQs5nh3Q4EbSHMgo47wUQfLIlPafdHzA6K5PBJQWITJ+\/xPqswuF2jq8s18UehMcSEfrqEqmqtVP8I0FOcVryRgQYnh8ASjTbaoc=",
"signature": "TgUJW3CK4g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ZK6aSVhrNOVtG2Qa69hb1HPQ6U=\r\n-----END CERTIFICATE-----"
}
\ No newline at end of file
......@@ -31,7 +31,10 @@ class Config
$this->loggerParams = $LoggerParameters;
}
public function getOrigins()
/**
* @return string
*/
public function getOrigins(): string
{
$origins = $this->config->getAppValue('webapppassword', 'origins');
......@@ -39,7 +42,7 @@ class Config
$origins = implode(',', $this->config->getSystemValue('webapppassword.origins', []));
}
return $origins;
return implode(',', array_map('trim', explode(',', $origins)));
}
public function getOriginList()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment