W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2001

HT_MSG_FILE_REPLACE callback

From: Oliver Steinau <Oliver.Steinau@STencode.de>
Date: Thu, 16 Aug 2001 13:42:26 +0200
Message-ID: <2B88AE35C609DF4F852D31FFA6FD5EE601A385@CAESAR.STencode.de>
To: <www-lib@w3.org>
When this callback is called, the filename that is about to be replaced
is not passed to callback -- wouldn't it be more sensible, if one could
check the filename in the callback function to be able to decide whether
it can be overwritten or not?

Ie. change HTLoadToFile (HTAccess.c) from

		if ((*prompt)(request, HT_A_CONFIRM,
HT_MSG_FILE_REPLACE, NULL,
			      NULL, NULL) != YES)
		    return NO;

to

		if ((*prompt)(request, HT_A_CONFIRM,
HT_MSG_FILE_REPLACE, NULL,
			      filename, NULL) != YES)
		    return NO;

?

/oliver
Received on Thursday, 16 August 2001 07:42:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:39 GMT