disallow 8 bit characters and control characters in HTML view
"Roberto S. G." <[email protected]>
| Newsgroups | gmane.mail.squirrelmail.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Actual SM versions disallow links (clicking in "show html") which
contain what in English ascii may seem "control" characters... actually
there are (closed) applications which use regional chars in their long
url links (with vars and so...) and SM blocks them.
So in my case I had to slightly modify next code in functions/mime.php
in order to let SM show them, broading the range of allowed chars:
// first, disallow 8 bit characters and control characters
- if (preg_match('/[\0-\37\200-\377]+/',$attvalue)) {
+ if (preg_match('/[\0-\37\200-\277]+/',$attvalue)) {
Don't know how to make it better... A global SM admin option to allow
regional chars in urls would be feasible?
bye
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
-----
squirrelmail-devel mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.devel
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-devel