SVN: toys/stbr/index.php
vip
vip at pld-linux.org
Fri Nov 23 19:06:01 CET 2007
Author: vip
Date: Fri Nov 23 19:06:01 2007
New Revision: 9087
Modified:
toys/stbr/index.php
Log:
- use urlencode() to attach buildlogs URL
- fix db path again...
Modified: toys/stbr/index.php
==============================================================================
--- toys/stbr/index.php (original)
+++ toys/stbr/index.php Fri Nov 23 19:06:01 2007
@@ -1,6 +1,6 @@
<?
ob_start("ob_gzhandler");
-$db = sqlite_open("./db/stbrlog.db");
+$db = sqlite_open("../db/stbrlog.db");
include("queue.php");
@@ -100,12 +100,12 @@
/* popup by sparky, GPLv2 ! */
function tohtml( txt ) {
- return txt .replace(/\[/g, '<') .replace(/\]/g, '>')
+ return decodeURIComponent(txt .replace(/\[/g, '<') .replace(/\]/g, '>')
.replace(/<</g, '[') .replace(/>>/g, ']')
.replace(/`/g, "'")
.replace(/OK/g, '<b class="ok">OK</b>')
.replace(/\?/g, '<b class="dunno">?</b>')
- .replace(/FAIL/g, '<b class="fail">FAIL</b>');
+ .replace(/FAIL/g, '<b class="fail">FAIL</b>'));
}
popup = null;
@@ -332,6 +332,7 @@
foreach($filled['builder'] as $key => $value)
{
$url = `./buildlog_link.py {$filled['no']} {$key}`;
+ $url = urlencode(trim($url));
$title .= $value . " @ [a href="" . $url . ""]" . $key . "[/a][br/]";
if($value === '?')
$request_status_unknown = true;
More information about the pld-cvs-commit
mailing list