Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

check_order_by_in_table_joins()

Description

If a "fieldX" order_by is used, check it's a valid value

Parameters

ColumnTypeDefaultDescription
$order_by
string string of order by

Location

include/search_functions.php lines 3490 to 3498

Definition

 
function check_order_by_in_table_joins($order_by)
    {
    global 
$lang;

    if (
substr($order_by,0,5)=="field" && !in_array(substr($order_by,5),get_resource_table_joins()))
        {
        exit(
$lang['error_invalid_input'] . ":- <pre>order_by : " escape($order_by) . "</pre>");
        }
    }

This article was last updated 17th November 2024 15:05 Europe/London time based on the source file dated 8th November 2024 11:45 Europe/London time.