Old 28th June 2013, 17:30   #1
hanen.jomaa
Junior Member
 
Join Date: Mar 2013
Posts: 23
deny special characters

Hi,

i have a text field to enter some configuration,

i want deny special characters like "/ \ * $ "

can I doing that please?

thx for your help
hanen.jomaa is offline   Reply With Quote
Old 28th June 2013, 18:22   #2
aerDNA
Senior Member
 
aerDNA's Avatar
 
Join Date: Feb 2007
Location: Rijeka, Croatia
Posts: 225
Validate input with StrFilter.
E.g.
!include "WordFunc.nsh"
${StrFilter} "$Input" "12" ".-" "" $0 # letters, digits, dot & dash allowed
-or-
${StrFilter} "$Input" "" "" "/\*$$" $0 # everything but / \ * $ allowed
StrCmp $0 $Input ValidInput InvalidInput

PostEnd:
aerDNA is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump