Skip to content
Snippets Groups Projects
Commit a129ad47 authored by stuebinm's avatar stuebinm
Browse files

disallow more things in urls

parent f2a68764
Branches
No related tags found
No related merge requests found
Pipeline #13247 passed
......@@ -477,14 +477,7 @@ checkTileLayerProperty p@(Property name _value) = case name of
-> forbidProperty name
-- the openWebsite Api can only be allowed if the website is on static.rc3.world
| T.toLower name == "openwebsiteallowapi"
-> do
properties <- askContext <&> getProperties
unless (all (\(Property name value) -> case value of
StrProp str -> name /= "openWebsite" || "https://static.rc3.world" `isPrefixOf` str
_ -> True
) properties)
$ complain "\"openWebsiteAllowApi\" can only be used with websites hosted \
\on https://static.rc3.world"
-> forbid "\"openWebsiteAllowApi\" is disallowed."
| name `elem` [ "openWebsite", "openTab" ] -> do
uselessEmptyLayer
suggestProperty $ Property "openWebsiteTrigger" (StrProp "onaction")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment