1) Download source code of FCK Provider here DotNetNuke FCKeditor Provider
2) Open solution and in the file "Components\FckEditorControl.vb" go to the line 633 and replace code:
If sUserAgent.IndexOf("Opera/") >= 0 Then Dim oMatch As Match = Regex.Match(Me.Page.Request.UserAgent, "(?<=Opera/)[\d\.]+") If oMatch.Success Then If IsNumeric(oMatch.Value) Then Return Double.Parse(oMatch.Value, CultureInfo.InvariantCulture) >= 9.5 Else Return False End If Else Return False End IfEnd Ifwith this one:
If sUserAgent.IndexOf("Opera/") >= 0 Then Dim oMatch As Match = Regex.Match(Me.Page.Request.UserAgent, "(?<=Opera/)[\d\.]+") Dim result As Double If oMatch.Success Then If Double.TryParse(oMatch.Value, NumberStyles.Float Or NumberStyles.AllowThousands, CultureInfo.InvariantCulture, result) Then Return result >= 9.5 Else Return False End If Else Return False End IfEnd If
No comments:
Post a Comment
Note: only a member of this blog may post a comment.