Dunno if anyone else is seeing this problem, but I had to apply the
attached patch in order for mythweb (0.16 and 0.17) to allow me to
edit my keybindings.

warning: I know nothing about PHP or SQL.

-- 
Morals?  I eat communism and $h!t America, brother.  --Seanbaby
--- settings_keys.php.orig      2005-01-23 19:35:54.000000000 -0800
+++ settings_keys.php   2005-02-12 18:18:41.062256615 -0800
@@ -24,6 +24,7 @@
             if (preg_match('/^jump:([\\w_\/]+):(\\w+)$/', $key, $matches)) {
                 list($match, $dest, $host) = $matches;
                 $dest = str_replace("_", " ", $dest);
+               $host = str_replace("_", ".", $host);
                 $usehost = $host;
                 $query = 'UPDATE jumppoints SET 
keylist='.escape($_POST[$key]).' WHERE destination='.escape($dest).' AND 
hostname='.escape($host).';';
                 $result = mysql_query($query)
@@ -31,6 +32,7 @@
             }
             elseif (preg_match('/^key:([\\w_\/]+):(\\w+):(\\w+)$/', $key, 
$matches)) {
                 list($match, $context, $action, $host) = $matches;
+               $host = str_replace("_", ".", $host);
                 $usehost = $host;
                 $context = str_replace("_", " ", $context);
                 $query = 'UPDATE keybindings SET 
keylist='.escape($_POST[$key]).' WHERE context='.escape($context).' AND 
action='.escape($action).' AND hostname='.escape($host).';';
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to