mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
exam support valid multiple
This commit is contained in:
@@ -868,6 +868,8 @@ elseif ($torrentsperpage_main)
|
||||
$torrentsperpage = $torrentsperpage_main;
|
||||
else $torrentsperpage = 50;
|
||||
|
||||
do_log("[TORRENT_COUNT_SQL] $sql", 'debug');
|
||||
|
||||
if ($count)
|
||||
{
|
||||
if ($addparam != "")
|
||||
@@ -899,6 +901,7 @@ if ($count)
|
||||
else{
|
||||
$query = "SELECT torrents.id, torrents.sp_state, torrents.promotion_time_type, torrents.promotion_until, torrents.banned, torrents.picktype, torrents.pos_state, torrents.category, torrents.source, torrents.medium, torrents.codec, torrents.standard, torrents.processing, torrents.team, torrents.audiocodec, torrents.leechers, torrents.seeders, torrents.name, torrents.small_descr, torrents.times_completed, torrents.size, torrents.added, torrents.comments,torrents.anonymous,torrents.owner,torrents.url,torrents.cache_stamp,torrents.pt_gen,torrents.hr FROM torrents ".($search_area == 3 || $column == "owner" ? "LEFT JOIN users ON torrents.owner = users.id " : "")." LEFT JOIN categories ON torrents.category=categories.id $tagFilter $where $orderby $limit";
|
||||
}
|
||||
do_log("[TORRENT_LIST_SQL] $query", 'debug');
|
||||
if (!$elasticsearchEnabled) {
|
||||
$res = sql_query($query);
|
||||
}
|
||||
|
||||
+1
-1
@@ -102,7 +102,7 @@ if ($action){
|
||||
else
|
||||
$avatar = $_POST["avatar"];
|
||||
|
||||
if(preg_match("/^http:\/\/[^\s'\"<>]+\.(jpg|gif|png|jpeg)$/i", $avatar) && !preg_match("/\.php/i",$avatar) && !preg_match("/\.js/i",$avatar) && !preg_match("/\.cgi/i",$avatar)) {
|
||||
if(preg_match("/^https?:\/\/[^\s'\"<>]+\.(jpg|gif|png|jpeg)$/i", $avatar) && !preg_match("/\.php/i",$avatar) && !preg_match("/\.js/i",$avatar) && !preg_match("/\.cgi/i",$avatar)) {
|
||||
$avatar = htmlspecialchars( trim( $avatar ) );
|
||||
$updateset[] = "avatar = " . sqlesc($avatar);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user