Commit graph

419 commits

Author SHA1 Message Date
Dave Wetzel
1ade9620ce add _setValueNoValidation:inComponent:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25647 72102866-910b-0410-8b05-ffd578937521
2007-11-30 13:30:33 +00:00
Dave Wetzel
9e358a052c * prepare for enhancements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25636 72102866-910b-0410-8b05-ffd578937521
2007-11-29 20:30:19 +00:00
Dave Wetzel
eeaa2ba24a * only call validationFailedWithException... if execption was raised
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25625 72102866-910b-0410-8b05-ffd578937521
2007-11-28 22:22:10 +00:00
Dave Wetzel
cf8eac40f2 * small cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25624 72102866-910b-0410-8b05-ffd578937521
2007-11-28 21:13:25 +00:00
Dave Wetzel
e8b2f11ba2 * rewrote large parts of GSWDefaultAdaptor
* new GSWHTTPIO and GSWWorkerThread
* dropped GSWDefaultAdaptorThread
* some takeValue:forKey: fixes
* started to remove global inclues


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25611 72102866-910b-0410-8b05-ffd578937521
2007-11-25 16:49:37 +00:00
David Ayers
be15a70bff * GSWeb.framework/GSWApplication+Defaults.m
(TAKEVALUEFORKEY): Rely on setValue:forKey: to handle
	nil values.

	* GSWExtensions.framework/GSWKeyValueConditional.h
	* GSWExtensions.framework/GSWKeyValueConditional.api
	Convert from DOS to UNIX line feeds.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25604 72102866-910b-0410-8b05-ffd578937521
2007-11-24 10:13:22 +00:00
Dave Wetzel
ce30e17469 make file uploads work in firefox without proxy
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25288 72102866-910b-0410-8b05-ffd578937521
2007-06-22 23:48:25 +00:00
Dave Wetzel
1e6833238c 2007-06-22 David Wetzel <dave@turbocat.de>
* GSWAdaptors/Apache2/mod_gsw.c
    * GSWSWeb.framework/GSWComponentRequestHandler.m
    * GSWeb.framework/GSWDefaultAdaptorThread.m

    Added support for POST requests from browsers without content-length header.
    (firefox does this without proxy)



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25287 72102866-910b-0410-8b05-ffd578937521
2007-06-22 16:12:16 +00:00
Dave Wetzel
a94bd64e42 fixed mixed up "_item" with "_selection"
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25141 72102866-910b-0410-8b05-ffd578937521
2007-05-11 10:05:46 +00:00
Dave Wetzel
a187fb6a58 fixed "if" statement
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25132 72102866-910b-0410-8b05-ffd578937521
2007-05-10 12:01:46 +00:00
Dave Wetzel
2b370da0c7 less debig output
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25036 72102866-910b-0410-8b05-ffd578937521
2007-04-13 20:57:12 +00:00
Dave Wetzel
bf3f713b2b added
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25032 72102866-910b-0410-8b05-ffd578937521
2007-04-13 20:14:21 +00:00
Dave Wetzel
c1aab698ee added
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25030 72102866-910b-0410-8b05-ffd578937521
2007-04-13 18:46:41 +00:00
Dave Wetzel
d92957ccb6 moved files from my branch. I hope it will not break too much :-)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@25027 72102866-910b-0410-8b05-ffd578937521
2007-04-13 18:32:02 +00:00
David Ayers
c751ea3e90 * GSWeb.framework/GSWApplication.m (GSWApplicationMainReal):
Remove dependency on GNUSTEP_SYSTEM_ROOT and search all domains
	in precedence for frameworks to load.

	* Doc/howto.gsdoc: Replace reference to GNUSTEP_SYSTEM_ROOT with
	new installation location.  Also remove refernece to obsolete debug extension.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24641 72102866-910b-0410-8b05-ffd578937521
2007-02-18 11:19:58 +00:00
Nicola Pero
916e3f496b Added comment about danger of using GNUSTEP_SYSTEM_ROOT env variable to locate resources
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24624 72102866-910b-0410-8b05-ffd578937521
2007-02-18 02:12:45 +00:00
Nicola Pero
f62af1ca72 Uncommented some lines that I unwillingly commented out in doing the last change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24142 72102866-910b-0410-8b05-ffd578937521
2006-11-21 12:59:35 +00:00
Nicola Pero
da3ada8346 Use GNUSTEP_INSTALLATION_DOMAIN and DESTDIR
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@24097 72102866-910b-0410-8b05-ffd578937521
2006-11-15 17:19:55 +00:00
Richard Frith-MacDonald
36cdef1fba correct illegal use of private internal base library api
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@23793 72102866-910b-0410-8b05-ffd578937521
2006-10-09 08:58:37 +00:00
David Ayers
64434f87cc * GSWeb.framework/GSWDefaultAdaptorThread.m
(readRequestReturnedRequestLine:returnedHeaders:returnedData:):
	Remove superflous sleep.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@23762 72102866-910b-0410-8b05-ffd578937521
2006-10-04 21:49:02 +00:00
David Ayers
e3f1372d29 * GSWeb.framework/GSWAction.m (-[initWithRequest:]): Retain
context.
	* GSWeb.framework/GSWActionRequestHandler.m
	(-[getActionInstanceOfClass:withRequest:): Autorelease action.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@22368 72102866-910b-0410-8b05-ffd578937521
2006-01-26 20:42:20 +00:00
Dave Wetzel
db77ed552d Removed multiple categories per file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@22294 72102866-910b-0410-8b05-ffd578937521
2006-01-11 11:33:46 +00:00
David Ayers
8ee1195d11 * GSWeb.framework/GSWApplication+Defaults.m
(GSWeb_InitializeGlobalAppDefaultOptions): Add handling for
	GSW/WOStatusLoggingEndabled-GSWOPT_StatusLoggingEnabled.
	Fix handling of user defaults.
	((UserDefaults/GSWUserDefaults)): Split category in handling
	WO45 defaults and GSWeb specific defaults.
	(+is/setStatusLoggingEnabled): New methods and default to
	control status logging.
	(-set/defaultRequestHandlerClassName): Move to GSWApplication
	class implementation as this is not handled via user defaults.
	* GSWeb.framework/GSWApplication.(h/m)
	((UserDefaults/GSWUserDefaults)): Split category in handling
	WO45 defaults and GSWeb specific defaults.
	(+is/setStatusLoggingEnabled): New methods and default to
	control status logging.
	(+set/defaultRequestHandlerClassName): Move to GSWApplication
	class implementation as this is not handled via user defaults.
	(GSWFPutSL): New local macro to consistently log NSString's to
	a stream.  Updated callers to fputs.
	(+statusDebug...): Guard all calls with +isStatusDebuggingEnabled.
	(+statusLog...): Guard all calls with +isStatusLoggingEnabled.
	* GSWeb.framework/GSWConfig.h: Add GSWOPTVALUE_StatusLoggingEnabled.
	* GSWeb.framework/GSWConstants.h/m: Add GSWOPT_StatusLoggingEnabled.

	* GSWeb.framework/GSWHTMLRawParser.m (dealloc): Implement fixing
	a potentially major memory leak.
	* GSWeb.framework/GSWDefaultAdaptorThread.m (dealloc): Destroy
	pool (which should have been destroyed before, in normal operation).
	(run:) Destroy pool in case the threads is rerun.

	* GSWeb.framework/GSWApplication.(h/m) (-debugAdaptorThreadExited):
	New debug utility extension.
	* GSWeb.framework/GSWDefaultAdaptorThread.m (threadExited): Call new
	debug convenience method.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@22174 72102866-910b-0410-8b05-ffd578937521
2005-12-17 16:44:58 +00:00
Dave Wetzel
8de6ae31a3 added support for Direct Actions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21930 72102866-910b-0410-8b05-ffd578937521
2005-10-31 14:31:18 +00:00
David Ayers
1f23cdf495 Revert workaround for buggy external implementations on some platforms.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21920 72102866-910b-0410-8b05-ffd578937521
2005-10-30 11:37:15 +00:00
Dave Wetzel
3267b04c36 removed ZLIB default
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21910 72102866-910b-0410-8b05-ffd578937521
2005-10-29 22:31:28 +00:00
David Ayers
b38c59f884 * GSWeb.framework/GSWRequest.m
([_getFormValuesFromMultipartFormData]): Always set the default
	character set of the mime parser but be efficient for latin-1
	and utf-8.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21769 72102866-910b-0410-8b05-ffd578937521
2005-10-04 10:24:42 +00:00
David Ayers
0b03330415 * GSWeb.framework/GSWRequest.m:
(-[initWithMethod:uri:httpVersion:headers:content:userInfo:]):
	Leave _formValueEncoding undefined.
	(-[formValueEncoding]): Return defaultFormValueEncoding if
	formValueEncoding is undefined.
	(-[_formValueEncodingFromFormData:): Use formValueEncoding until
	we have encoding detection mechanisms.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21768 72102866-910b-0410-8b05-ffd578937521
2005-10-02 20:34:57 +00:00
David Ayers
a3a00031a9 * GSWeb.framework/GSWDeclarationParser.m
(parseQuotedString): Handle escaped quotes.
	(parseDictionaryWithValuesAsAssociations:): Handle key path as key.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21765 72102866-910b-0410-8b05-ffd578937521
2005-10-02 13:04:23 +00:00
David Ayers
8e5df9662a * GSWeb.framework/GSWBaseParser.m
(-[lineAndColumnIndexesFromIndex:returnsLineIndex:columnIndex:])
	Treat '\r' as a regualar character when counting lines as '\n'
	is the actual line break.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21764 72102866-910b-0410-8b05-ffd578937521
2005-10-02 12:22:36 +00:00
Dave Wetzel
75db9e1263 added - (NSData*) dataUsingEncoding: (NSStringEncoding)encoding allowLossyConversion: (BOOL)flag
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21761 72102866-910b-0410-8b05-ffd578937521
2005-09-30 15:29:59 +00:00
Dave Wetzel
f2ba0d3691 avoid cString (hint from David Ayers)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21760 72102866-910b-0410-8b05-ffd578937521
2005-09-30 15:29:15 +00:00
Dave Wetzel
01c0036479 fix compression
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21753 72102866-910b-0410-8b05-ffd578937521
2005-09-28 09:00:31 +00:00
David Ayers
79e34a14c4 * GSWeb.framework/GSWUtils.h/m (GetTmpName): Remove unused
function which generates warnings about tempnam usage.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21187 72102866-910b-0410-8b05-ffd578937521
2005-05-04 10:16:51 +00:00
Manuel Guesdon
c1c4332dc8 Small fixes and optimizations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21155 72102866-910b-0410-8b05-ffd578937521
2005-04-24 12:12:16 +00:00
Manuel Guesdon
7fa7771df6 Removed GSWHyperlink hrefInContext: and fixed enabled binding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21154 72102866-910b-0410-8b05-ffd578937521
2005-04-24 11:56:46 +00:00
Dave Wetzel
7fc8ac41e5 removed some logs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21145 72102866-910b-0410-8b05-ffd578937521
2005-04-22 22:41:36 +00:00
Dave Wetzel
c493f482c3 removed some logs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21137 72102866-910b-0410-8b05-ffd578937521
2005-04-21 12:45:11 +00:00
Dave Wetzel
3331c5b1bd avoid message call if not needed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21063 72102866-910b-0410-8b05-ffd578937521
2005-04-06 19:45:32 +00:00
Dave Wetzel
48282e559d workaround for bad GSWDynamicURLString implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21062 72102866-910b-0410-8b05-ffd578937521
2005-04-06 18:17:20 +00:00
Manuel Guesdon
c923bad765 Fixes and optimzations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21054 72102866-910b-0410-8b05-ffd578937521
2005-04-05 15:54:24 +00:00
Manuel Guesdon
f2d2a684ab Optimizations, fixes and disabling sesson creation/restoration feature
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21051 72102866-910b-0410-8b05-ffd578937521
2005-04-05 14:49:55 +00:00
Manuel Guesdon
a70d649ad1 Small fixes and optimizations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21050 72102866-910b-0410-8b05-ffd578937521
2005-04-05 11:54:36 +00:00
Dave Wetzel
b782f91a1d use cStringLength in place of length
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@21044 72102866-910b-0410-8b05-ffd578937521
2005-04-04 15:42:47 +00:00
David Ayers
1d13e0c715 * GSWeb.framework/GSWApplication+Defaults.m (GSWAppClassDummy):
Added method declarations to help various compiler versions
        identify the correct signaure to use.
        (+[GSWApplication setSessionTimeOutValue:]): Use it.
        (+[GSWApplication sessionTimeOutValue]); Ditto.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20969 72102866-910b-0410-8b05-ffd578937521
2005-03-25 16:01:55 +00:00
Manuel Guesdon
a55b140ff5 * GSWeb.framework/GSWBrowser.m
o fixed double HTML escaping bug (reported by David Ayers)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20960 72102866-910b-0410-8b05-ffd578937521
2005-03-22 09:04:46 +00:00
Richard Frith-Macdonald
848c80d39c Tidy to work with current base library and avoid minor overheads.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20940 72102866-910b-0410-8b05-ffd578937521
2005-03-21 19:17:18 +00:00
Manuel Guesdon
31b00db975 * GSWeb.framework/NSString+HTML.m
o fixes in GSWMemMove and testStringByConvertingHTML


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20924 72102866-910b-0410-8b05-ffd578937521
2005-03-18 12:56:33 +00:00
Dave Wetzel
ca9665c10c changes to support various encodings in GSMime
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20895 72102866-910b-0410-8b05-ffd578937521
2005-03-11 10:31:26 +00:00
Dave Wetzel
c80c54ef29 * GSWeb.framework/GSWRequest.m
* GSWeb.framework/NSString+HTML.?
   o replaced dictionaryQueryString by dictionaryQueryStringWithEncoding:
   o replaced decodeURL by decodeURLEncoding:
     debugging and coding together with David Ayers


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@20890 72102866-910b-0410-8b05-ffd578937521
2005-03-10 16:10:03 +00:00