infinite redirect in mythweb schedules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mythplugins |
Unknown
|
Unknown
|
|||
mythplugins (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Binary package hint: mythplugins
I'm using mythweb on the mythbuntu ppa repo so I hope this is the correct place to report this.
Steps to reproduce (100%)
1. Go to http://
2. Create schedule
3. Click on the newly created schedule link such as http://
4. Select "Cancel this schedule"
5. Save schedule
I'm given an infinite redirect loop such as this: http://
I can see this in my Apache log as well, adding another instance of "/tv" every time, such as these log entries
192.168.xxx.xxx - - [18/Feb/
192.168.xxx.xxx - - [18/Feb/
This happens in both Firefox 3.6, Firefox 4.0, and Google-Chrome
I'm not a PHP programmer, but I had a look at the code and thought maybe it had to do with this difference
modules/
24: redirect_
53: header('Location: tv/schedules');
109: header('Location: tv/schedules/
modules/
26: redirect_
67: header('Location: '.root_
148: header('Location: '.root_
Note the use of root_url in the redirect in the schedules_
Other infos:
$ lsb_release -rd
Description: Ubuntu 10.04.2 LTS
Release: 10.04
$ apt-cache policy mythwebmythweb:
Installed: 2:0.24.
Candidate: 2:0.24.
Version table:
*** 2:0.24.
500 http://
100 /var/lib/
0.
500 http://
Changed in mythplugins: | |
status: | Unknown → New |
Changed in mythplugins: | |
status: | New → Confirmed |
Changed in mythplugins: | |
status: | Confirmed → Unknown |
--- schedules_ manual. php.orig 2011-02-18 11:26:28.926032333 -0500 manual. php 2011-02-18 11:25:47.017912399 -0500 :find($ _GET['recordid' ]); $schedule- >search) || $schedule->search != searchtype_manual) browser( 'tv/schedules' ); browser( root_url. 'tv/schedules' );
add_ warning( t('The requested recording schedule has been deleted.'));
save_ session_ errors( ); url.'tv/ schedules' );
exit;
$ schedule- >save($ type); manual/ '.$schedule- >recordid) ; url.'tv/ schedules/ manual/ '.$schedule- >recordid) ;
+++ schedules_
@@ -21,7 +21,7 @@
$schedule =& Schedule:
// Not a manual schedule
if (empty(
- redirect_
+ redirect_
}
// Create a new, empty schedule
else
@@ -50,7 +50,7 @@
// Redirect back to the schedule list
- header('Location: tv/schedules');
+ header('Location: '.root_
}
}
@@ -106,7 +106,7 @@
// Save the schedule
// Redirect to the new schedule
- header('Location: tv/schedules/
+ header('Location: '.root_
exit;
}
}