diff options
author | Remi Collet <fedora@famillecollet.com> | 2010-07-11 18:56:05 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2010-07-11 18:56:05 +0200 |
commit | a5fdd45528a85457821ef4739efcd3fc778affde (patch) | |
tree | 46e547df4cc4cdec2edbf061821422e1a9d65873 | |
parent | e6b48f0d645a72b2b4898f3ddc90fc8437f9b1e2 (diff) |
fix issue with using name containing special char.
-rw-r--r-- | class/FedoraPkgdb.php | 2 | ||||
-rw-r--r-- | pkgdb-ajax.php | 2 | ||||
-rw-r--r-- | scripts/rpmphp.js | 2 | ||||
-rw-r--r-- | smarty/templates/rpmphp/zoom.tpl | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/class/FedoraPkgdb.php b/class/FedoraPkgdb.php index 9f2a094..d170911 100644 --- a/class/FedoraPkgdb.php +++ b/class/FedoraPkgdb.php @@ -80,7 +80,7 @@ class FedoraPkgdb extends FedoraClient function getPackageURL($name) { - return $this->url.$this->suburl.urlencode($name); + return $this->url.$this->suburl.$name; } function getPackageInfo($name, $refresh=false) diff --git a/pkgdb-ajax.php b/pkgdb-ajax.php index f23b4cf..24d07b8 100644 --- a/pkgdb-ajax.php +++ b/pkgdb-ajax.php @@ -80,6 +80,6 @@ if ( !isset($name) || !$name ) { } } } - +error_log("RETURN:".print_r($fedpkg,true)); echo json_encode($fedpkg); ?>
\ No newline at end of file diff --git a/scripts/rpmphp.js b/scripts/rpmphp.js index 18dfa32..6723438 100644 --- a/scripts/rpmphp.js +++ b/scripts/rpmphp.js @@ -30,7 +30,7 @@ function initZoomJS(name) if ( data.error ) { alert(data.error); } else { - $('#' + name + '_desc').empty().html(data.devel.package.description); + $('#' + 'pkgdb_desc').empty().html(data.devel.package.description); $.each( data, function(k, v){ diff --git a/smarty/templates/rpmphp/zoom.tpl b/smarty/templates/rpmphp/zoom.tpl index bcbb222..5841478 100644 --- a/smarty/templates/rpmphp/zoom.tpl +++ b/smarty/templates/rpmphp/zoom.tpl @@ -40,7 +40,7 @@ {foreach from=$summary key=k item=v} <tr> <th>{$k}:</th> - <td{if $k eq 'Description'} id="{$name}_desc"{/if}> + <td{if $k eq 'Description'} id="pkgdb_desc"{/if}> {if $k eq 'Bugzilla'} <a href="{$v}">Active bugs</a> {elseif $k eq 'URL' or $k eq 'ViewVC' or $k eq 'PkgDB'} |