Misc updates
Some small formatting updates. Assert that some strings have a length before accessing them via string offset.
This commit is contained in:
parent
38a75ce70c
commit
4f679114c3
|
@ -477,7 +477,7 @@ if (!$_SESSION['admin_username']) {
|
||||||
if (isset($_POST['os_sp_require_url'])) {
|
if (isset($_POST['os_sp_require_url'])) {
|
||||||
$_POST['os_sp_require_url'] = explode("\n", substr(preg_replace('/\n+/', "\n", str_replace("\r\n", "\n", trim($_POST['os_sp_require_url']))), 0, 4095));
|
$_POST['os_sp_require_url'] = explode("\n", substr(preg_replace('/\n+/', "\n", str_replace("\r\n", "\n", trim($_POST['os_sp_require_url']))), 0, 4095));
|
||||||
foreach ($_POST['os_sp_require_url'] as $key => $require) {
|
foreach ($_POST['os_sp_require_url'] as $key => $require) {
|
||||||
if ($require[0] == '*') {
|
if (strlen($require) && $require[0] == '*') {
|
||||||
$require = substr($require, 1);
|
$require = substr($require, 1);
|
||||||
$test = preg_match('/'.str_replace('/', '\/', $require).'/', 'test');
|
$test = preg_match('/'.str_replace('/', '\/', $require).'/', 'test');
|
||||||
if ($test === false) {
|
if ($test === false) {
|
||||||
|
@ -492,7 +492,7 @@ if (!$_SESSION['admin_username']) {
|
||||||
if (isset($_POST['os_sp_ignore_url'])) {
|
if (isset($_POST['os_sp_ignore_url'])) {
|
||||||
$_POST['os_sp_ignore_url'] = explode("\n", substr(preg_replace('/\n+/', "\n", str_replace("\r\n", "\n", trim($_POST['os_sp_ignore_url']))), 0, 4095));
|
$_POST['os_sp_ignore_url'] = explode("\n", substr(preg_replace('/\n+/', "\n", str_replace("\r\n", "\n", trim($_POST['os_sp_ignore_url']))), 0, 4095));
|
||||||
foreach ($_POST['os_sp_ignore_url'] as $key => $ignore) {
|
foreach ($_POST['os_sp_ignore_url'] as $key => $ignore) {
|
||||||
if ($ignore[0] == '*') {
|
if (strlen($ignore) && $ignore[0] == '*') {
|
||||||
$ignore = substr($ignore, 1);
|
$ignore = substr($ignore, 1);
|
||||||
$test = preg_match('/'.str_replace('/', '\/', $ignore).'/', 'test');
|
$test = preg_match('/'.str_replace('/', '\/', $ignore).'/', 'test');
|
||||||
if ($test === false) {
|
if ($test === false) {
|
||||||
|
@ -532,7 +532,7 @@ if (!$_SESSION['admin_username']) {
|
||||||
if (isset($_POST['os_sp_title_strip'])) {
|
if (isset($_POST['os_sp_title_strip'])) {
|
||||||
$_POST['os_sp_title_strip'] = explode("\n", substr(preg_replace('/\n+/', "\n", str_replace("\r\n", "\n", trim($_POST['os_sp_title_strip']))), 0, 4095));
|
$_POST['os_sp_title_strip'] = explode("\n", substr(preg_replace('/\n+/', "\n", str_replace("\r\n", "\n", trim($_POST['os_sp_title_strip']))), 0, 4095));
|
||||||
foreach ($_POST['os_sp_title_strip'] as $key => $title_strip) {
|
foreach ($_POST['os_sp_title_strip'] as $key => $title_strip) {
|
||||||
if ($title_strip[0] == '*') {
|
if (strlen($title_strip) && $title_strip[0] == '*') {
|
||||||
$title_strip = substr($title_strip, 1);
|
$title_strip = substr($title_strip, 1);
|
||||||
$test = preg_match('/'.str_replace('/', '\/', $title_strip).'/', 'test');
|
$test = preg_match('/'.str_replace('/', '\/', $title_strip).'/', 'test');
|
||||||
if ($test === false) {
|
if ($test === false) {
|
||||||
|
|
|
@ -53,6 +53,9 @@ input[type="number"] {
|
||||||
table-layout:fixed;
|
table-layout:fixed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.bar-graph thead {
|
||||||
|
transform:translatey(0.6em);
|
||||||
|
}
|
||||||
table.bar-graph tbody tr th time {
|
table.bar-graph tbody tr th time {
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue