Ticket #10791: 0002-change-to-PATH_SEPARATOR-in-mythweb.php.patch

File 0002-change-to-PATH_SEPARATOR-in-mythweb.php.patch, 998 bytes (added by dekarl@…, 8 years ago)

suggest fix, ready to commit on master

  • mythweb.php

    From e1c7e90db645e037cc04593b838edd9b7ae41d9d Mon Sep 17 00:00:00 2001
    From: Karl Dietz <dekarl@users.sourceforge.net>
    Date: Fri, 3 Aug 2012 23:26:30 +0200
    Subject: [PATCH 2/2] change ':' to PATH_SEPARATOR in mythweb.php
    
    In mythweb.php, include_path is set numerous times using PATH_SEPARATOR except
    for one case where a literal ':' is used.
    Patch by Karog
    
    Fixes #10791
    ---
     mythweb.php |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/mythweb.php b/mythweb.php
    index bba2aa8..79ff196 100644
    a b  
    3030    if (Modules::getModule($Path[0])) {
    3131    // Add the current module directory to our search path, so modules can
    3232    // define includes, etc.
    33         ini_set('include_path', ini_get('include_path').':'.modules_path.'/'.$Path[0]);
     33        ini_set('include_path', ini_get('include_path').PATH_SEPARATOR.modules_path.'/'.$Path[0]);
    3434    // Load the module handler
    3535        require_once 'handler.php';
    3636    }