Print Page | Close Window

Change in blnUploadSecurityCheck

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=31417
Printed Date: 28 March 2026 at 6:56am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Change in blnUploadSecurityCheck
Posted By: Roberto Randall
Subject: Change in blnUploadSecurityCheck
Date Posted: 24 October 2016 at 8:47pm
Hello,
Is not it better to change in "function _upload.asp" within the NEXT chain "blnUploadSecurityCheck":
 
 
       'If the disallowed HTML is found set the file as not being allowed
       If Instr(1, strTempFile,  saryUnSafeHTMLtags(lngLoopCounter), 1) Then
        'For testing purposes
        'Response.Write(" - " & saryUnSafeHTMLtags(lngLoopCounter))
        'Response.End
        
        'Set the security scan fail boolen to true
        blnSecurityScanFail = True
       End If
 
BY
 
 
       'If the disallowed HTML is found set the file as not being allowed
       If Instr(1, strTempFile,  saryUnSafeHTMLtags(lngLoopCounter), 1) Then
        'For testing purposes
        'Response.Write(" - " & saryUnSafeHTMLtags(lngLoopCounter))
        'Response.End
        
        strNewFileName = hexValue(7)
       End If
 
Thus if an image contains a text prohibited on their behalf upload the photo and renames. Eg. "embedding.jpg".
 
Sorry for my English. It is translated by Google Translate. I hope you understand.


-------------
https://www.lanocion.es - https://www.lanocion.games - https://www.lanocion.chat



Replies:
Posted By: WebWiz-Bruce
Date Posted: 25 October 2016 at 9:06am
Thank you for your suggestion will look in to adding this.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net