diff options
author | Adam Chlipala <adam@chlipala.net> | 2011-07-03 16:21:04 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2011-07-03 16:21:04 -0400 |
commit | 388662d3221e193c6c6f913d4584b92ddf6dbcf5 (patch) | |
tree | 85df22bf9d1a37d9f660f8d74bcefb9b3f9447fe /src/c | |
parent | 7745f6d389483acb40e5575d09eff5031666e91a (diff) |
Basis.currentUrlHasQueryString
Diffstat (limited to 'src/c')
-rw-r--r-- | src/c/urweb.c | 4 |
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; } |