|
bkkz
|
Quote: from Vancouver Jay on 11:22 am on July 30, 2003 BK, to enable Thai script to be posted, you'll have to allow HTML postings at least in a limited form. Check the post.cgi script and you should be able to find the lines where special HTML characters like angle brackets and the ampersand are matched and substituted. Then write an "unless" exception to that which permits a string containing ampersand-pound-4digits-semicolon to pass unmatched where 4digits are in the range 3840 to 3967; that corresponds to the Unicode range 0E00-0E7F. Let me know if I can help.
Thanks for the tip. I realized that post.cgi was converting all those ampersand characters (&) to &. I guess, I will have to add a post option to allow users to enter Thai script, and so that the & would not be translated.
|
Thai Girls : Meet Sexy Thai Girls
Posted on: 12:12 am on July 30, 2003
|
|
Vancouver Jay
|
That would work. But you'll have to add it to both post.cgi and postings.cgi for new posts and edits respectively. And people will still forget to tick the box; it's human nature. The line of code you're looking for should be something like: $name =~ s/\&/\&\;/g; Which could be replaced by: unless ( $name =~ m/\...\;/g; ) { $name =~ s/\&/\&\;/g; } That would pass all the HTML special characters between 3000 and 3999, which includes other Unicode ranges beside That, but excludes the ASCII characters which can be used to write malicious code. Plus you wouldn't have to build in a checkbox- it would work invisibly. (p.s. Double-check my regular expressions and syntax. I'm a little rusty.)
|
Bangkok Women : Meet Sensual Bangkok Women
Posted on: 1:27 am on July 30, 2003
|
|
|
|