summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-07-03 16:21:04 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2011-07-03 16:21:04 -0400
commit388662d3221e193c6c6f913d4584b92ddf6dbcf5 (patch)
tree85df22bf9d1a37d9f660f8d74bcefb9b3f9447fe /src
parent7745f6d389483acb40e5575d09eff5031666e91a (diff)
Basis.currentUrlHasQueryString
Diffstat (limited to 'src')
-rw-r--r--src/c/urweb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index e38cd072..b1785cb6 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -3802,6 +3802,10 @@ uw_Basis_bool uw_Basis_currentUrlHasPost(uw_context ctx) {
return ctx->isPost;
}
+uw_Basis_bool uw_Basis_currentUrlHasQueryString(uw_context ctx) {
+ return ctx->queryString != NULL && ctx->queryString[0] != 0;
+}
+
void uw_setQueryString(uw_context ctx, uw_Basis_string s) {
ctx->queryString = s;
}