This commit is contained in:
fred 2023-03-15 05:35:44 +01:00
parent f724941cfb
commit af4777df69
1 changed files with 4 additions and 3 deletions

View File

@ -46,7 +46,8 @@ class Fred {
throw new Exception("J'ai pas pû récupérer la putain de deuxième page.");
}
preg_match("`url='([^']+)'`isU", $page2, $matches);
$ClearText = preg_replace( "/\n\s+/", "\n", rtrim(html_entity_decode(strip_tags($page2))) );
preg_match("`url='([^']+)'`isU", $ClearText, $matches);
$ipnsKey = $matches[1];
@ -148,8 +149,8 @@ class Fred {
throw new Exception("J'ai pas pû récupérer la putain de deuxième page.");
}
preg_match("`url='([^']+)'`isU", $page2, $matches);
$ClearText = preg_replace( "/\n\s+/", "\n", rtrim(html_entity_decode(strip_tags($page2))) );
preg_match("`url='([^']+)'`isU", $ClearText, $matches);
$gchangeId = $matches[1];