LinHES Forums
http://forums.linhes.org/

Single quote while using MythWeb's video edit
http://forums.linhes.org/viewtopic.php?f=3&t=4789
Page 1 of 1

Author:  Luthair [ Fri Jun 03, 2005 12:52 pm ]
Post subject:  Single quote while using MythWeb's video edit

I noticed a while ago that when editing video meta data through MythWeb if fields included a single quote (') the edit would not occur. I've submitted a patch to the Myth-Dev mailing list but its a pretty simple fix if you want to do it yourself.

You need to be logined as root in console then:

cd /usr/share/mythtv/mythweb
nano video_edit.php

Now hit ctrl+w and type isset it should find the following line:
Code:
if (isset($_POST['submit'])) {


Below this you need to add the following:
Code:
$_POST['title'] = addcslashes($_POST['title'], "'");
$_POST['plot'] = addcslashes($_POST['plot'], "'");


"'" is doublequote(") singlequote(') and another doublequote(")

Author:  steeve [ Sat Jul 09, 2005 8:52 pm ]
Post subject: 

here it is more than a month after Luthair posted this fix and I'm just now employing it! I was having trouble editing some metadata via MythWeb and lo' and behold, a search of the archives found Luthair's post/cure. thanks, dude!

-Bob K.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/