|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
To add other languages, you just need to add some keyword or
something specific to that language to the first regex. Quote:
If the user was only posting a small amount of code, the alert might still show, but they have the option to ignore it if they want...
__________________
Support requests via PM will be ignored! |
|
#17
|
||||
|
||||
|
We change the JavaScript to check for
<? <% <script <style <?xml <!-- <applet <html Hope this will do the job. |
|
#19
|
||||
|
||||
|
Test.
|
|
#20
|
||||
|
||||
|
<?
|
|
#21
|
||||
|
||||
|
This change is done across all our forums.
Quote:
|
|
#22
|
||||
|
||||
|
Nice one lads!
<edit> Erm, it's just alerted me for this message... Last edited by ChiefWigs1982 : April 7th, 2005 at 01:09 PM. |
|
#23
|
||||
|
||||
|
The problem is the '?' s. They're special, so you need to escape
them with a backslash, else everything will be matched. Code:
(<\?) and (<\?xml) Last edited by ChiefWigs1982 : April 7th, 2005 at 01:28 PM. |
|
#24
|
||||
|
||||
|
lol. nice error
|
|
#25
|
||||
|
||||
|
This is fixed
Quote:
|
|
#26
|
||||
|
||||
|
Much better!
![]() |