Merge remote-tracking branch 'upstream/develop' into develop
# Conflicts: # ext/cron_uploader/main.php
This commit is contained in:
		
						commit
						edc05b2f72
					
				| @ -56,8 +56,6 @@ date_default_timezone_set('UTC'); | |||||||
| 		</div> | 		</div> | ||||||
| 		<pre style="display:none"> | 		<pre style="display:none"> | ||||||
| <?php } | <?php } | ||||||
| assert_options(ASSERT_ACTIVE, 1); |  | ||||||
| assert_options(ASSERT_BAIL, 1); |  | ||||||
| 
 | 
 | ||||||
| // Pull in necessary files
 | // Pull in necessary files
 | ||||||
| require_once "core/exceptions.php"; | require_once "core/exceptions.php"; | ||||||
|  | |||||||
| @ -202,7 +202,7 @@ class Image | |||||||
|         $yays = 0; |         $yays = 0; | ||||||
|         $nays = 0; |         $nays = 0; | ||||||
|         foreach ($tags as $tag) { |         foreach ($tags as $tag) { | ||||||
|             if (!preg_match("/^-?[a-zA-Z0-9_-]+$/", $tag)) { |             if (!preg_match("/^-?[a-zA-Z0-9_'-]+$/", $tag)) { | ||||||
|                 return null; |                 return null; | ||||||
|             } |             } | ||||||
|             if ($tag[0] == "-") { |             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                                              * | * Request initialisation stuff                                              * | ||||||
| @ -396,11 +385,6 @@ function _sanitise_environment(): void | |||||||
|     ini_set('assert.exception', 1);  // throw exceptions when failed
 |     ini_set('assert.exception', 1);  // throw exceptions when failed
 | ||||||
|     if (DEBUG) { |     if (DEBUG) { | ||||||
|         error_reporting(E_ALL); |         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(); |     $_shm_ctx = new Context(); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user