diff options
author | Julian Squires <julian@cipht.net> | 2015-04-24 16:21:55 -0400 |
---|---|---|
committer | Julian Squires <julian@cipht.net> | 2015-04-24 16:21:55 -0400 |
commit | 36e93feed9439cd64a03954b267596f71f596a46 (patch) | |
tree | 4bdc1c047250e747fb6ed92c12e0fdad66ac1fc9 /src | |
parent | 0efcff1b495fba8885657905e9cdae7c4308a0c0 (diff) |
Allow URIs specified in file directives implicitly
It seems to me that, by specifying that one wants to serve a given
file at a specified URI, one is implying that this URI should be
allowed.
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler.sml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler.sml b/src/compiler.sml index 388cc7d2..8f6d1fad 100644 --- a/src/compiler.sml +++ b/src/compiler.sml @@ -875,7 +875,8 @@ fun parseUrp' accLibs fname = (case String.fields Char.isSpace arg of [uri, fname] => (Settings.setFilePath thisPath; Settings.addFile {Uri = uri, - LoadFromFilename = fname}) + LoadFromFilename = fname}; + url := {action = Settings.Allow, kind = Settings.Exact, pattern = uri} :: !url) | _ => ErrorMsg.error "Bad 'file' arguments") | _ => ErrorMsg.error ("Unrecognized command '" ^ cmd ^ "'"); |