svn commit: samba r7057 - in
branches/SAMBA_4_0/source/web_server/esp: .
idra at samba.org
idra at samba.org
Sat May 28 16:57:04 GMT 2005
Author: idra
Date: 2005-05-28 16:57:03 +0000 (Sat, 28 May 2005)
New Revision: 7057
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7057
Log:
remove some ^M at end of lines
Modified:
branches/SAMBA_4_0/source/web_server/esp/esp.c
Changeset:
Modified: branches/SAMBA_4_0/source/web_server/esp/esp.c
===================================================================
--- branches/SAMBA_4_0/source/web_server/esp/esp.c 2005-05-28 11:40:51 UTC (rev 7056)
+++ branches/SAMBA_4_0/source/web_server/esp/esp.c 2005-05-28 16:57:03 UTC (rev 7057)
@@ -167,9 +167,9 @@
* NOTE: MaRequest::setVar does not copy into globals, whereas espSetVar
* does if legacy_api is defined. So variables pre-defined by MaRequest
* must be copied here into globals[].
- *
- * NOTE: if a variable is in session[] and in form[], the form[] will
- * override being later in the variables[] list. Use mprSetProperty
+ *
+ * NOTE: if a variable is in session[] and in form[], the form[] will
+ * override being later in the variables[] list. Use mprSetProperty
* instead of mprCreateProperty to cover for this case.
*/
for (i = 0; i < ESP_OBJ_MAX; i++) {
@@ -769,13 +769,13 @@
state = ESP_STATE_BEGIN;
break;
- case ESP_TOK_INCLUDE:
- if (parse.token[0] == '/') {
- mprStrcpy(incPath, sizeof(incPath), parse.token);
- } else {
- mprGetDirName(dir, sizeof(dir), ep->uri);
- mprSprintf(incPath, sizeof(incPath), "%s/%s",
- dir, parse.token);
+ case ESP_TOK_INCLUDE:
+ if (parse.token[0] == '/') {
+ mprStrcpy(incPath, sizeof(incPath), parse.token);
+ } else {
+ mprGetDirName(dir, sizeof(dir), ep->uri);
+ mprSprintf(incPath, sizeof(incPath), "%s/%s",
+ dir, parse.token);
}
if (esp->mapToStorage(ep->requestHandle, path, sizeof(path),
incPath, 0) < 0) {
@@ -797,11 +797,11 @@
*/
incBuf = 0;
if ((rc = buildScript(ep, &incBuf, incText, errMsg)) < 0) {
- mprFree(incText);
- mprFree(parse.token);
+ mprFree(incText);
+ mprFree(parse.token);
return rc;
- }
-
+ }
+
len = mprReallocStrcat(jsBuf, maxScriptSize, len, 0, incBuf, 0);
mprFree(incText);
mprFree(incBuf);
@@ -810,12 +810,12 @@
}
tid = getEspToken(state, &parse);
}
- mprFree(parse.token);
- if (len < 0) {
- mprAllocSprintf(errMsg, MPR_MAX_STRING,
- "Script token is too big in %s.\nConfigured maximum is %d.",
- path, maxScriptSize);
- return MPR_ERR_WONT_FIT;
+ mprFree(parse.token);
+ if (len < 0) {
+ mprAllocSprintf(errMsg, MPR_MAX_STRING,
+ "Script token is too big in %s.\nConfigured maximum is %d.",
+ path, maxScriptSize);
+ return MPR_ERR_WONT_FIT;
}
return rc;
}
More information about the samba-cvs
mailing list