From 55141154c083acc2d0397f4c62b4e0be1c7a19fa Mon Sep 17 00:00:00 2001 From: Bot Date: Tue, 3 Jan 2017 14:12:17 +0100 Subject: Replaced " with ' --- includes/pages/user_atom.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'includes/pages/user_atom.php') diff --git a/includes/pages/user_atom.php b/includes/pages/user_atom.php index 42217a3a..913a8821 100644 --- a/includes/pages/user_atom.php +++ b/includes/pages/user_atom.php @@ -7,17 +7,17 @@ function user_atom() { global $user, $display_news; - if (!isset($_REQUEST['key']) || !preg_match("/^[0-9a-f]{32}$/", $_REQUEST['key'])) { - engelsystem_error("Missing key."); + if (!isset($_REQUEST['key']) || !preg_match('/^[0-9a-f]{32}$/', $_REQUEST['key'])) { + engelsystem_error('Missing key.'); } $key = $_REQUEST['key']; $user = User_by_api_key($key); if ($user == null) { - engelsystem_error("Key invalid."); + engelsystem_error('Key invalid.'); } if (!in_array('atom', privileges_for_user($user['UID']))) { - engelsystem_error("No privilege for atom."); + engelsystem_error('No privilege for atom.'); } $news = sql_select(" @@ -31,7 +31,7 @@ function user_atom() $output = make_atom_entries_from_news($news); header('Content-Type: application/atom+xml; charset=utf-8'); - header("Content-Length: " . strlen($output)); + header('Content-Length: ' . strlen($output)); raw_output($output); } @@ -51,21 +51,21 @@ function make_atom_entries_from_news($news_entries) $_SERVER['REQUEST_URI'] )) . ' - ' . date('Y-m-d\TH:i:sP', $news_entries[0]['Datum']) . "\n"; + ' . date('Y-m-d\TH:i:sP', $news_entries[0]['Datum']) . '' . "\n"; foreach ($news_entries as $news_entry) { $html .= make_atom_entry_from_news($news_entry); } - $html .= ""; + $html .= ''; return $html; } function make_atom_entry_from_news($news_entry) { - return " - " . htmlspecialchars($news_entry['Betreff']) . " - - " . preg_replace('#^https?://#', '', page_link_to_absolute("news")) . "-${news_entry['ID']} - " . date('Y-m-d\TH:i:sP', $news_entry['Datum']) . " - " . htmlspecialchars($news_entry['Text']) . " - \n"; + return ' + ' . htmlspecialchars($news_entry['Betreff']) . ' + + ' . preg_replace('#^https?://#', '', page_link_to_absolute('news')) . '-' . $news_entry['ID'] . ' + ' . date('Y-m-d\TH:i:sP', $news_entry['Datum']) . ' + ' . htmlspecialchars($news_entry['Text']) . ' + ' . "\n"; } -- cgit v1.3.1