3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-20 02:49:49 +01:00

Decode entities

This commit is contained in:
Pragmatic Software 2010-05-08 01:51:57 +00:00
parent 31f0b129de
commit 2dc70b7eea

View File

@ -6,6 +6,7 @@ use strict;
use SOAP::Lite; use SOAP::Lite;
$SOAP::Constants::DO_NOT_USE_XML_PARSER = 1; $SOAP::Constants::DO_NOT_USE_XML_PARSER = 1;
use IPC::Open2; use IPC::Open2;
use HTML::Entities;
my $user = 'test'; my $user = 'test';
my $pass = 'test'; my $pass = 'test';
@ -295,6 +296,8 @@ if($result->{result} == $INTERNAL_ERROR) {
$output .= "\n" . $result->{stderr}; $output .= "\n" . $result->{stderr};
$output .= "\n" . $result->{output}; $output .= "\n" . $result->{output};
$output = decode_entities($output);
$output =~ s/cc1: warnings being treated as errors//; $output =~ s/cc1: warnings being treated as errors//;
$output =~ s/ Line \d+ ://g; $output =~ s/ Line \d+ ://g;
$output =~ s/ \(first use in this function\)//g; $output =~ s/ \(first use in this function\)//g;