Skip to content

Commit

Permalink
Why use fprintf?
Browse files Browse the repository at this point in the history
fprintf call error because url encoding string have "%".
  • Loading branch information
tao-s committed Nov 8, 2014
1 parent 75d85fb commit 97a564e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/concrete/jobs/generate_sitemap.php
Expand Up @@ -79,7 +79,7 @@ public function run() {
if(!$hFile = @fopen($osName, 'w')) {
throw new \Exception(t('Cannot open file %s', $osName));
}
if(!@fprintf($hFile, $dom->saveXML())) {
if(!@fwrite($hFile, $dom->saveXML())) {
throw new \Exception(t('Error writing to file %s', $osName));
}
@fflush($hFile);
Expand Down

0 comments on commit 97a564e

Please sign in to comment.