Merge remote-tracking branch 'upstream/develop' into develop
# Conflicts: # ext/cron_uploader/main.php
This commit is contained in:
commit
edc05b2f72
3 changed files with 1 additions and 19 deletions
|
@ -56,8 +56,6 @@ date_default_timezone_set('UTC');
|
|||
</div>
|
||||
<pre style="display:none">
|
||||
<?php }
|
||||
assert_options(ASSERT_ACTIVE, 1);
|
||||
assert_options(ASSERT_BAIL, 1);
|
||||
|
||||
// Pull in necessary files
|
||||
require_once "core/exceptions.php";
|
||||
|
|
|
@ -202,7 +202,7 @@ class Image
|
|||
$yays = 0;
|
||||
$nays = 0;
|
||||
foreach ($tags as $tag) {
|
||||
if (!preg_match("/^-?[a-zA-Z0-9_-]+$/", $tag)) {
|
||||
if (!preg_match("/^-?[a-zA-Z0-9_'-]+$/", $tag)) {
|
||||
return null;
|
||||
}
|
||||
if ($tag[0] == "-") {
|
||||
|
|
|
@ -351,17 +351,6 @@ function log_slow(): void
|
|||
}
|
||||
}
|
||||
|
||||
function score_assert_handler($file, $line, $code, $desc = null): void
|
||||
{
|
||||
$file = basename($file);
|
||||
print("Assertion failed at $file:$line: $code ($desc)");
|
||||
/*
|
||||
print("<pre>");
|
||||
debug_print_backtrace();
|
||||
print("</pre>");
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\
|
||||
* Request initialisation stuff *
|
||||
|
@ -396,11 +385,6 @@ function _sanitise_environment(): void
|
|||
ini_set('assert.exception', 1); // throw exceptions when failed
|
||||
if (DEBUG) {
|
||||
error_reporting(E_ALL);
|
||||
assert_options(ASSERT_ACTIVE, 1);
|
||||
assert_options(ASSERT_BAIL, 1);
|
||||
assert_options(ASSERT_WARNING, 0);
|
||||
assert_options(ASSERT_QUIET_EVAL, 1);
|
||||
assert_options(ASSERT_CALLBACK, 'score_assert_handler');
|
||||
}
|
||||
|
||||
$_shm_ctx = new Context();
|
||||
|
|
Reference in a new issue