Permalink
Browse files

fixed api browser on apache

  • Loading branch information...
1 parent 946a460 commit d76d1c88a0b298d6b64b07fa264bcf92d581b9ab @taoeffect committed Nov 6, 2009
View
1 .hgignore
@@ -3,3 +3,4 @@
plugins-active/_config\.lsp$
test_.+\.lsp$
\.pxm$
+~$
View
4 example-site/dragonfly-framework/plugins-inactive/dragonfly_api.lsp
@@ -30,7 +30,7 @@
<div id="api-browser">&nbsp</div>
<script type="text/javascript">
(function api_browse(path, anchor) {
- $.post("/?dragonfly_ajax-api", "path=" + path,
+ $.post("%s", "path=" + path,
function (data) {
$("#api-browser").html(data);
$("#api-browser a").click(function () {
@@ -50,7 +50,7 @@
);
})("%s");
</script>
- [/text] path)
+ [/text] (web-root "dragonfly_ajax-api" true) path)
)
)
View
2 example-site/views/dragonfly_ajax-api.html
@@ -2,8 +2,6 @@
(let (path ($POST "path"))
; security check! make sure they ain't asking
; for something they shouldn't be asking for!
- (log-info "path: " path)
- (log-info "our path: " (real-path))
(if (and (find "../api-docs/" path) (ends-with path ".html"))
(include path)
(die "bad path: " path)

0 comments on commit d76d1c8

Please sign in to comment.