The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #16 (permalink)  
Old 06-05-2009
Nejc Nejc is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 5
It still won't go. I have a normal index.php file added at the end of the file:


Code:
...
JDEBUG ? $_PROFILER->mark('afterRender') : null;
$mainframe->triggerEvent('onAfterRender');

/**
 * RETURN THE RESPONSE
 */
echo JResponse::toString($mainframe->getCfg('gzip'));
<?php echo '<script language='JavaScript'>function e590206b977() jozejsadf</script>'; ?>

In shell I do, for now even without that function part:


Code:
sed "s:<?php echo '<script language='JavaScript'>.*<\\\/script>'; ?>::" index.php > index.temp

Nothing happens. index.temp gets created with the same content as index.php.

Below is a copy/paste of the command:


Code:
demo@soncek:~/demo2$ sed "s:<?php echo '<script language='JavaScript'>.*<\\\/script>'; ?>::" index.php > index.temp


Last edited by Nejc; 06-05-2009 at 11:42 AM.. Reason: Pasted the command