From ec29f2e6a614f11889e8bd359ac40c97ad9e7f35 Mon Sep 17 00:00:00 2001 From: LeoColomb Date: Sat, 7 Sep 2013 18:07:26 +0200 Subject: [PATCH] require instead of include for more security --- yourls-loader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yourls-loader.php b/yourls-loader.php index 9581a6b..7251016 100644 --- a/yourls-loader.php +++ b/yourls-loader.php @@ -34,7 +34,7 @@ $keyword = isset( $matches[1] ) ? $matches[1] : ''; $keyword = yourls_sanitize_keyword( $keyword ); yourls_do_action( 'load_template_go', $keyword ); - include_once( YOURLS_ABSPATH.'/yourls-go.php' ); + require_once( YOURLS_ABSPATH.'/yourls-go.php' ); exit; } @@ -44,7 +44,7 @@ $keyword = yourls_sanitize_keyword( $keyword ); $aggregate = isset( $matches[2] ) ? (bool)$matches[2] && yourls_allow_duplicate_longurls() : false; yourls_do_action( 'load_template_infos', $keyword ); - include_once( YOURLS_ABSPATH.'/yourls-infos.php' ); + require_once( YOURLS_ABSPATH.'/yourls-infos.php' ); exit; } @@ -59,4 +59,4 @@ // Past this point this is a request the loader could not understand yourls_do_action( 'loader_failed', $request ); yourls_redirect( YOURLS_SITE, 302 ); -exit; \ No newline at end of file +exit; -- 2.45.0