home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Electronic Program Guide
WebEPG
A tiny bug in WebEPG parsing
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Khurram" data-source="post: 362154" data-attributes="member: 74579"><p>I believe I have found a bug in WebEPG parsing. If the string that is selected by WebEPG based on the url and start plus end strings has the "<" character as its last character, WebEPG will not be able to find any program information. I have traced it in code and it seems that it tries to parse past the last < character to find which tag it belongs to. Obviously, there is no tag there as the string has already ended and WebEPG throws an error.</p><p></p><p>The obvious easy solution is to avoid start and end strings which will result in such strings. If someone is interested, the code to fix is in HtmlString.cs file in the TagList function. Just change the 3rd statement in the function from</p><p></p><p>if (source<em> == '<')</em></p><p><em></em></p><p><em>to</em></p><p><em></em></p><p><em>if (source<em> == '<' && i < source.Length-1)</em></em></p><p><em><em></em></em></p><p><em><em>By the way, I cant use the word sub-string (without the hyphen) in my post as it throws a "http 501 not implement/http 505 version not supported" error when I click on post or preview button <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" /></em></em></p></blockquote><p></p>
[QUOTE="Khurram, post: 362154, member: 74579"] I believe I have found a bug in WebEPG parsing. If the string that is selected by WebEPG based on the url and start plus end strings has the "<" character as its last character, WebEPG will not be able to find any program information. I have traced it in code and it seems that it tries to parse past the last < character to find which tag it belongs to. Obviously, there is no tag there as the string has already ended and WebEPG throws an error. The obvious easy solution is to avoid start and end strings which will result in such strings. If someone is interested, the code to fix is in HtmlString.cs file in the TagList function. Just change the 3rd statement in the function from if (source[i] == '<') to if (source[i] == '<' && i < source.Length-1) By the way, I cant use the word sub-string (without the hyphen) in my post as it throws a "http 501 not implement/http 505 version not supported" error when I click on post or preview button :S[/i][/i] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Electronic Program Guide
WebEPG
A tiny bug in WebEPG parsing
Contact us
RSS
Top
Bottom