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
MediaPortal 1 Plugins
My Music Videos - V0.41
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="joz" data-source="post: 504027" data-attributes="member: 70244"><p>Hi ,</p><p></p><p><img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> for the new version but I'm sorry to report that there's still some stuff not being escaped properly. </p><p>Now it's a query that fails and therefore makes mp crash.</p><p>As a webdev myself I always escape ALL user input. I think that's a good best practice. What if someone names their files "DROP TABLE Videos " <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> ?</p><p>[CODE]2009-09-02 11:14:07.265625 [ERROR][MPMain]: SQLiteClient: MusicVids.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:table Videos already exists query:CREATE TABLE Videos (id integer PRIMARY KEY AUTOINCREMENT, artistID integer, path char(300), title char(100), playCount integer, rating integer, year integer, thumb char(300))</p><p>2009-09-02 11:14:45.562500 [ERROR][MPMain]: SQLiteClient: MusicVids.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:near "s": syntax error query:UPDATE Videos SET playCount = 1 WHERE path = '\\Server\D - Media\Mijn video's\Music Video's\Balthazar - Bathroom Lovin.mp4'</p><p>2009-09-02 11:14:45.578125 [ERROR][MPMain]: OnMessage exception:SQLite.NET.SQLiteException: SQLiteClient: MusicVids.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:near "s": syntax error query:UPDATE Videos SET playCount = 1 WHERE path = '\\Server\D - Media\Mijn video's\Music Video's\Balthazar - Bathroom Lovin.mp4'</p><p> bij SQLite.NET.SQLiteClient.ThrowError(String statement, String sqlQuery, SqliteError err)</p><p> bij SQLite.NET.SQLiteClient.Execute(String query)</p><p> bij MPMusicVids.Data.DataManager.play(String filename)</p><p> bij MPMusicVids.MusicVidsMain.g_Player_PlayBackStarted(MediaType type, String filename)</p><p> bij MediaPortal.Player.g_Player.StartedHandler.Invoke(MediaType type, String filename)</p><p> bij MediaPortal.Player.g_Player.OnStarted()</p><p> bij MediaPortal.Player.g_Player.Play(String strFile, MediaType type)</p><p> bij MediaPortal.Playlists.PlayListPlayer.FakePlayer.MediaPortal.Playlists.PlayListPlayer.IPlayer.Play(String strFile)</p><p> bij MediaPortal.Playlists.PlayListPlayer.Play(Int32 iSong)</p><p> bij MPMusicVids.MusicVidsMain.playRandomAll()</p><p> bij MPMusicVids.MusicVidsMain.OnClicked(Int32 controlId, GUIControl control, ActionType actionType)</p><p> bij MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)[/CODE]</p><p></p><p>So the new version did fix the scanner but not the playback part yet. </p><p>Besides that the scanner came with an ERROR, as a artist suggestion. Not sure which files those were, will report back when I find out.</p></blockquote><p></p>
[QUOTE="joz, post: 504027, member: 70244"] Hi , :thx: for the new version but I'm sorry to report that there's still some stuff not being escaped properly. Now it's a query that fails and therefore makes mp crash. As a webdev myself I always escape ALL user input. I think that's a good best practice. What if someone names their files "DROP TABLE Videos " :) ? [CODE]2009-09-02 11:14:07.265625 [ERROR][MPMain]: SQLiteClient: MusicVids.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:table Videos already exists query:CREATE TABLE Videos (id integer PRIMARY KEY AUTOINCREMENT, artistID integer, path char(300), title char(100), playCount integer, rating integer, year integer, thumb char(300)) 2009-09-02 11:14:45.562500 [ERROR][MPMain]: SQLiteClient: MusicVids.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:near "s": syntax error query:UPDATE Videos SET playCount = 1 WHERE path = '\\Server\D - Media\Mijn video's\Music Video's\Balthazar - Bathroom Lovin.mp4' 2009-09-02 11:14:45.578125 [ERROR][MPMain]: OnMessage exception:SQLite.NET.SQLiteException: SQLiteClient: MusicVids.db3 cmd:sqlite3_prepare16:pvm=null err:ERROR detailed:near "s": syntax error query:UPDATE Videos SET playCount = 1 WHERE path = '\\Server\D - Media\Mijn video's\Music Video's\Balthazar - Bathroom Lovin.mp4' bij SQLite.NET.SQLiteClient.ThrowError(String statement, String sqlQuery, SqliteError err) bij SQLite.NET.SQLiteClient.Execute(String query) bij MPMusicVids.Data.DataManager.play(String filename) bij MPMusicVids.MusicVidsMain.g_Player_PlayBackStarted(MediaType type, String filename) bij MediaPortal.Player.g_Player.StartedHandler.Invoke(MediaType type, String filename) bij MediaPortal.Player.g_Player.OnStarted() bij MediaPortal.Player.g_Player.Play(String strFile, MediaType type) bij MediaPortal.Playlists.PlayListPlayer.FakePlayer.MediaPortal.Playlists.PlayListPlayer.IPlayer.Play(String strFile) bij MediaPortal.Playlists.PlayListPlayer.Play(Int32 iSong) bij MPMusicVids.MusicVidsMain.playRandomAll() bij MPMusicVids.MusicVidsMain.OnClicked(Int32 controlId, GUIControl control, ActionType actionType) bij MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)[/CODE] So the new version did fix the scanner but not the playback part yet. Besides that the scanner came with an ERROR, as a artist suggestion. Not sure which files those were, will report back when I find out. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
My Music Videos - V0.41
Contact us
RSS
Top
Bottom