diff src/c/urweb.c @ 1485:4300592e6803

Basis.currentUrlHasQueryString
author Adam Chlipala <adam@chlipala.net>
date Sun, 03 Jul 2011 16:21:04 -0400
parents ebc30bb262d0
children 7f8ddcf12b20
line wrap: on
line diff
--- a/src/c/urweb.c	Sat Jul 02 20:49:58 2011 -0430
+++ b/src/c/urweb.c	Sun Jul 03 16:21:04 2011 -0400
@@ -3802,6 +3802,10 @@
   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;
 }