[Top] [Prev] [Next] [Bottom]
[Contents]
SaAllowSQL
Sets a flag to indicate whether a Sapphire/Web-generated server application executable will process SQL statements embedded in an HTML template file.
#include "SaRnHtml.h"
int SaAllowSQL(int flag);
Arguments
- flag
- Flag indicating whether to process SQL embedded into an HTML file.
Return Values
Returns 1.
Sets a flag to indicate whether a Sapphire/Web-generated application executable will process SQL statements embedded in an HTML template file. If the flag is 0, embedded SQL is not processed. If the flag is set, then embedded SQL may be allowed depending on other settings (referenced in See Also). It is highly recommended that the default user for this path through the application be a restricted user when allowing embedded SQL. For example the following embedded SQL would potentially be dangerous:
##Sa_SQL=delete from authors##
if the default user had delete privileges.
SaAllowSQL(1);
- Note: This call is generated automatically by Sapphire/Web in the cgi Main
C file, with the dirname being the value of the Project.Allow SQL in HTML project option.
See Also
[Top] [Prev] [Next] [Bottom]
[Contents]
info@bluestone.com
Copyright © 1997, Bluestone. All rights
reserved.