Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: HMTL data from table is inherited on main PHP page #8

Closed
seanvree opened this issue Jul 30, 2017 · 6 comments
Closed

BUG: HMTL data from table is inherited on main PHP page #8

seanvree opened this issue Jul 30, 2017 · 6 comments

Comments

@seanvree
Copy link
Member

seanvree commented Jul 30, 2017

BUG:

If one of the loggers contains certain HTML in their LOG - the main PHP wrapper will inherit that code making the parent PHP page display incorrectly. (see screenshot below)

Workaround:
Determine where the parent PHP page starts displaying incorrectly, and manually CLEAR the target offending LOG file. You DO NOT need to delete the log, just open the log file and delete it's contents.

NOTE: If this is a common occurrence with a specific logger, MOVE the offending logger's LOG path to the end of LOG path list in your index.php file, example:

//Add Logs Here
$logs = array(
    "Radarr" => 'C:\ProgramData\Radarr\logs\radarr.txt',
    "MP4 Converter" => 'C:\sickbeard_mp4_automator\info.log',
    "Headphones" => 'C:\logs\headphones\headphones.log',
    "Sonarr" => 'C:\ProgramData\NzbDrone\logs\sonarr.txt',
    "SABNZBd" => 'C:\sabnzbd\logs\sabnzbd.log',
    "NZBHydra" => 'C:\logs\nzbhydra\nzbhydra.log',
  "Sonarr" => 'C:\ProgramData\NzbDrone\logs\sonarr.txt',
);

IN example below, SONARR is making the PHP wrapper page display incorrectly.

Screenshot:

logarrdisplayerror

@jonathanfinley
Copy link
Member

I've had an nginx error pop through (sonarr crashed) but it stayed inside the wrapper. just thought I'd add

@kmlucy
Copy link

kmlucy commented Aug 19, 2017

I don't know much web development, but could you use something like this?

http://www.php.net/manual/en/function.htmlspecialchars.php

@seanvree
Copy link
Member Author

@seanvree seanvree self-assigned this Aug 22, 2017
@seanvree seanvree added this to the 1.0 milestone Aug 22, 2017
@seanvree
Copy link
Member Author

seanvree commented Jan 1, 2018

@causefx

Do you have any idea how to fix this? Weird HTML tags in the raw log files are being interpreted in the DOM making the raw text show up as HTML.

Pretty rare, but really bothersome.

@seanvree seanvree mentioned this issue Jan 15, 2018
seanvree added a commit that referenced this issue Jan 16, 2018
Fixing inherited HTML - see #8
@seanvree
Copy link
Member Author

Fix applied, Currently in DEVELOP branch for testing

seanvree added a commit that referenced this issue Jan 18, 2018
1.	 Added: LIVE UPDATING!  

2.	Fixed rouge HTML inheritance which makes UI unusable.  See:  #8

3.	Added new "FLEX" bootstrap layout. See: #58

4.	Improved: Search function

5.	Added: Growl notifications 

6.	Added: ability to adjust the time display refresh interval

NOTE: PLEASE ensure you update your config file in /assets/config/. You can do this by renaming your old config file, coping the config.php.sample to config.php, and then edit the newly created config.php file with your values.
@seanvree
Copy link
Member Author

added with v3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants