One of our users accessing our site with safari got an error generated by the safari check in richtext-procs.
The User-Agent string his version of Safari sends is:
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.27 Safari/525.13"
The following code seems to look for the string "version", and chokes here, since it is not find. I do not know what would be the best way to fix this.
if {[string first "safari" $user_agent] != -1} {
regexp {version/([0-9]+)[.]} $user_agent _ user_agent_version
if {$user_agent_version < 3} {
set element(htmlarea_p) false
}
}